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. Image for the cookie policy date

Next or Previous Master record value

I am binding a datasource with relationship to the grid and I want to retrieve the next/previous displaying master record from the grid with the given pK record value. It is because the grid can be sorted and the displaying order is different from the datasource. Sorry, I am very new to this Grouping Grid Control.

Please kindly tell me how to do that.

Thanks in advance.

Robert

2 Replies

AD Administrator Syncfusion Team August 24, 2006 07:04 PM UTC

Hi,

See the following KB article where the CurrentElement is used for retrieving its parent. You can implement a similar way to retrieve for a particular record.
http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=302

Let us know if this satisfies your query.

Best Regards,
Leo.


AD Administrator Syncfusion Team August 25, 2006 07:31 PM UTC

Hi,
Thanks,
It is not the way I want. It is beause the current element could be different from the user selected PK. The user input is in other control. THe gcc is only the view.

Anyway, find how to do.
--loop over the gcc.Table.Record
--get matching PK,
--get whatever record is before or after from that record.

cheers,
Robert


Loader.
Live Chat Icon For mobile
Up arrow icon