We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Row Position

Thread ID:





38598 Dec 15,2005 02:06 PM UTC Dec 15,2005 03:58 PM UTC WinForms 1
Tags: GridControl
Christopher Dugdale
Asked On December 15, 2005 02:06 PM UTC

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.

Administrator [Syncfusion]
Replied On 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


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon