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,
I have a GDBG which is bound to a collection that implements IBindingList.
There is a 2 level parent to child record relationship hierarchy.
In the parent collection I fire a ListChanged event when a row is changed and naturally include the index of the row in the parent collection.
However in the event handler the index of the parent collection is not the same as the row index on the grid as there may be other child rows expanded.
How can I translate a parent collection index to grid index, taking into account other expanded rows?
Thanks
Chris.
ADAdministrator Syncfusion Team December 15, 2005 03:58 PM UTC
I think you will have to iterate through the objects in the parent table adding up the rows occupied by parent rows and expanded children until you find the object you seek. Here is a little sample.
http://www.syncfusion.com/Support/user/uploads/GDBG_FindParentObjectInGrid_df67f7bd.zip