The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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).
ADAdministrator Syncfusion Team 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
MBManish BafnaMarch 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);