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, We have simple DataBound GGC parent-child relationship(two level--0 for parent,1 for child).I am wiring RecordExpanding event of GGC and trying to get e.Record.id.For first time it is corectly showing rowindex.That is for first row it is showing 2 and so on.But afterwards when i change value in dropdown and GGC is refreashed with new data, it is showing 151 for first row.Afterwards if i again change value in dropwdown and GGC Is refreashed with new data, it is showing some 441 for first row.Is there some other way to get rowindex of all the parent rows which user has expanded.I want to store the rowindex of all the parent rows which user has expanded in an arraylist and use it later in some code manipulation.
Any insights/ideas into this would be highly appreciated. Actually it is very urgent for me.It is since two weeks we are trying on this but not able to get it to work.
ADAdministrator Syncfusion Team March 20, 2007 10:30 PM UTC
Hi Manish,
You can use the DisplayElements.IndexOf method to find the rowIndex of the record in a RecordExpanding event. But it depends on the display elements of the grid.
int RowIndex = gridGroupingControl1.Table.DisplayElements.IndexOf(e.Record);
Also you can get the unsorted record index by using the UnsortedRecords property of the grid table. Here is a code snippet
int RecordIndex = gridGroupingControl1.Table.UnsortedRecords.IndexOf(e.Record);