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.

Equivalent of NameToColIndex in Grid Grouping Control

Thread ID:

Created:

Updated:

Platform:

Replies:

57534 Mar 6,2007 04:55 AM Mar 7,2007 05:14 AM Windows Forms 2
loading
Tags: GridControl
Manish Bafna
Asked On March 6, 2007 04:55 AM

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 10:59 AM

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 05:14 AM

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.

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.

;