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

Getting Column Name from Column Index

Thread ID:

Created:

Updated:

Platform:

Replies:

90970 Oct 27,2009 09:56 AM Oct 28,2009 05:39 AM Windows Forms 1
loading
Tags: Grouping
Jason Lui
Asked On October 27, 2009 09:56 AM

Is there any way to get the column name from a column index?

For instance, in the TableControlCellClick, it gives me the arguments of column and row index. However, when I reorder the columns, they no longer match with the VisibleColumns collection.

How do I insure I get the correct column name that I clicked on?

Jisha Joy [Syncfusion]
Replied On October 28, 2009 05:39 AM

Hi Jason,

Please refer the following code to get the column name from the column index.

this.gridGroupingControl1.TableDescriptor.Columns[this.gridGroupingControl1.TableDescriptor.ColIndexToField(columnIndex)].Name;

Please let me know if this helps.

Regards,
Jisha

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

;