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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Creating a link label for a column style

Thread ID:

Created:

Updated:

Platform:

Replies:

1556 Nov 11,2002 05:57 PM UTC Nov 12,2002 11:15 AM UTC Windows Forms 3
loading
Tags: GridControl
Soung Bae
Asked On November 11, 2002 05:57 PM UTC

How would i go about creating a column with the link label look and feel and also have the functionality of the the click method of a link label. I'm using the databound grid. I have already build the linklabel in the .Net system grid but do not know how to go about it in syncfusion grids. Thanks for any help.

Administrator [Syncfusion]
Replied On November 11, 2002 06:21 PM UTC

Take a look at the DerivedCellControl Tutorial sample that ships with Essential Grid. It derives a LinkLabel.

Soung Bae
Replied On November 11, 2002 07:13 PM UTC

Thanks Clay. I have noticed that the sample adds the linklable to each individual cell. I need to add the linklable to the whole column depending on the column header text which I got using grdResults.Model.NameToColIndex("Case Number"). Is there an easy way to add the linklable to a whole column? Thanks again. Soung

Administrator [Syncfusion]
Replied On November 12, 2002 11:15 AM UTC

In your databound grid, if you want column 2 to be a column of links, then try: this.gridDataBoundGrid1.Model.CellModels.Add("LinkLabel", new GridLinkLabel.LinkLabelCellModel(this.gridDataBoundGrid1.Model)); this.gridDataBoundGrid1.Binder.InternalColumns[1].StyleInfo.CellType = "LinkLabel"; You also probably want to change the line in the control code to launch the style.Text directly, instead of using style.Tag, since this will not be set by database binding. process.StartInfo.Arguments = (string) style.Text;

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

;