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.
JSJeba S Syncfusion Team March 28, 2007 04:00 AM UTC
Hi HB,
You can get the column index of a column name using the TableDescriptor.NameToField. private void gridGroupingControl1_TableControlCellClick(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlCellClickEventArgs e) { string colName=e.TableControl.GetTableViewStyleInfo(e.Inner.RowIndex, e.Inner.ColIndex).TableCellIdentity.Column.Name; int colIndex=e.TableControl.TableDescriptor.NameToField(colName) ; object s=e.TableControl.GetTableViewStyleInfo(e.Inner.RowIndex, colIndex).CellValue; Console.WriteLine("CellValue="+s); Console.WriteLine(e.TableControl.GetTableViewStyleInfo(e.Inner.RowIndex, e.Inner.ColIndex).Text); }