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: November 16, 2018).
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 01:56 PM UTC Oct 28,2009 09:39 AM UTC WinForms 1
loading
Tags: Grouping
Jason Lui
Asked On October 27, 2009 01:56 PM UTC

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 09:39 AM UTC

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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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

;