Had been using the GDBG, but due to problems with filtering, i was advised to use the GGC, now am having issues with setting the image type of the cell to display images.
The grid is bound to a dataset that contains a bitmap image column, i would want to display that image in the column.
Also how do i set the header text in the GGC.
Previously i used:
//gridPending.Binder.InternalColumns["Approve"].StyleInfo.CellType = "Image";
//gridPending.Binder.InternalColumns["Approve"].HeaderText = "A";
Now i tried the following below, but not working.
gridPending.TableDescriptor.Columns[0].Appearance.AnyRecordFieldCell.CellType = "Image";
//gridPending.TableModel.ColStyles["Approve"].CellType = "Image";
JJ
Jisha Joy
Syncfusion Team
November 26, 2009 08:48 AM UTC
Hi Kannan,
Please try the following code and let me know if this helps.
this.gridGroupingControl1.Engine.ShowNestedPropertiesFields = false;
this.gridGroupingControl1.TableDescriptor.Columns["Image"].Appearance.AnyRecordFieldCell.CellType = GridCellTypeName.Image;
Regards,
Jisha
KV
Kannan Venkataramani
November 26, 2009 10:49 AM UTC
Thanks Jisha,
That was fantastic, worked a treat, is there a easy way to highlight a row when clicked on it?
JJ
Jisha Joy
Syncfusion Team
November 26, 2009 12:13 PM UTC
Hi Kannan,
Thank you for your update. You could use the following code to achieve the desired behavior.
//Form Load
this.gridGroupingControl1.TableOptions.ListBoxSelectionMode = SelectionMode.One;
Regards,
Jisha
KV
Kannan Venkataramani
November 26, 2009 02:54 PM UTC
Thanks again, everything is fine now
LS
Lingaraj S
Syncfusion Team
November 27, 2009 07:33 AM UTC
Hi Kannan,
Thanks for the update and using Syncfusion products.
Regrads,
Lingaraj S.