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

Equivalent of NameToColIndex in Grid Grouping Control

Thread ID:

Created:

Updated:

Platform:

Replies:

57534 Mar 6,2007 09:55 AM UTC Mar 7,2007 10:14 AM UTC WinForms 2
loading
Tags: GridControl
Manish Bafna
Asked On March 6, 2007 09:55 AM UTC

Hi,
What is equivalent of NameToColIndex property in Grid Grouping Control.I have tried hard but not able to find in the forun as how to return column index from column name in GGC.I have databound heirchical GGC (Of two level 0-parent,1-child).

With Warm Regards,
Manish Bafna.

Administrator [Syncfusion]
Replied On March 6, 2007 03:59 PM UTC

Hi Manish,

You can try this code.

int field = this.gridGroupingControl1.TableDescriptor.NameToField("Col1");
int colIndex = this.gridGroupingControl1.TableDescriptor.FieldToColIndex(field);

//For NestedTable...
int field = this.gridGroupingControl1.GetTableDescriptor("TableName").NameToField("Col1");
int colIndex = this.gridGroupingControl1.GetTableDescriptor("TableName").FieldToColIndex(field);

Best regards,
Haneef

Manish Bafna
Replied On March 7, 2007 10:14 AM UTC

Thanks a lot.It is working.

With Warm Regards,
Manish Bafna

>Hi Manish,

You can try this code.

int field = this.gridGroupingControl1.TableDescriptor.NameToField("Col1");
int colIndex = this.gridGroupingControl1.TableDescriptor.FieldToColIndex(field);

//For NestedTable...
int field = this.gridGroupingControl1.GetTableDescriptor("TableName").NameToField("Col1");
int colIndex = this.gridGroupingControl1.GetTableDescriptor("TableName").FieldToColIndex(field);

Best regards,
Haneef

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

;