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.
I have multiple DataTables bound to GGC to show nested tables.
In the _CellButtonClicked() event, there is a e.RowIndex parameter. This row index appears to be based on the current state of the grid UI, which can change if for example, a nested table above the row in question is expanded.
How do you convert this e.RowIndex to a data row index which can be used to retrieve reference to the corresponding bound data row?
ADAdministrator Syncfusion Team November 16, 2006 04:14 AM UTC
Hi Gah,
Below code snippet shows you how to get the recordindex if the rowindex is known.
// Recordindex is being calculated. GridTable table = e.TableCellIdentity.Table; Element el = table.DisplayElements[RowIndex]; Record r = el.ParentRecord; int RecordIndex= table.UnsortedRecords.IndexOf(r);