We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

how to add a link celltype column in ggc

hi all.
can i add a column to my GGC that will act as a link?
do you have a simple example ?\
thanks.

1 Reply

J. J.Nagarajan Syncfusion Team August 27, 2007 07:42 PM UTC

Hi Shachar,

A custom CellType requires a model class and a renderer class. The model class handles the serialization requirements for the control and creates the renderer class. The renderer class handles the UI requirements of the cell.

After creating the custom celltype, it has to be registered through TableModel.CellModels.Add function. Please refer to the following code snippet

this.gridGroupingControl1.TableModel.CellModels.Add("MyLinkLabel", new LinkLabelCellModel(this.gridGroupingControl1.TableModel));
this.gridGroupingControl1.TableDescriptor.Columns[0].Appearance.AnyRecordFieldCell.CellType = "MyLinkLabel";

http://websamples.syncfusion.com/samples/Grid.Windows/F67654/main.htm

Please let me know if you have any questions.

Regards,
Nagaraj


Loader.
Live Chat Icon For mobile
Up arrow icon