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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

how to add a link celltype column in ggc

Thread ID:

Created:

Updated:

Platform:

Replies:

67654 Aug 27,2007 01:41 PM UTC Aug 27,2007 07:42 PM UTC WinForms 1
loading
Tags: GridControl
Shachar Shimshon
Asked On August 27, 2007 01:41 PM UTC

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

J.Nagarajan [Syncfusion]
Replied On 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


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;