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, Can I loop through an actively selected record in a GGC and get the column headers as well as the value in that Row, Col? I'm able to get individual values using:
this.trancheGridGrouper.Table.Records.Count...
this.myGGC.TableModel[x, y].Text
but I would like to do it by the header and get the header so I can pass it with the cell value
ADAdministrator Syncfusion Team February 26, 2007 10:23 PM UTC
Hi Dimitri,
You can turn ON the record based selection using ListBoxSelectionModeproperty and call the Table.GetTableCellStyle method to get the selected record cell style information using the column header name.Below is a code snippet.
ADAdministrator Syncfusion Team February 27, 2007 04:18 PM UTC
Thanks Haneef, Will that give me the cell content for that selected record and header? I would like to get the cell value by knowing the column header name, The CellStyle equivalent of:
this.GGC.TableModel[row, 2].Text;
Dimitri
>Hi Dimitri,
You can turn ON the record based selection using ListBoxSelectionModeproperty and call the Table.GetTableCellStyle method to get the selected record cell style information using the column header name.Below is a code snippet.
ADAdministrator Syncfusion Team February 28, 2007 12:01 AM UTC
Hi Dimitri,
The CellStyle equivalent of: this.GGC.TableModel[row, 2].Text; >>>>>> You can try the below code snippet
//Get ColumnName from ColIndex. int field = this.gridGroupingControl1.TableDescriptor.ColIndexToField(2); string ColumnName = this.gridGroupingControl1.TableDescriptor.Fields[field].Name;
//Get Recor from RowIndex. Record rec =this.gridGroupingControl1.Table.DisplayElements[row].ParentRecord;