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

Losing selections in hierarchical grid

Thread ID:





41847 Mar 13,2006 06:09 PM UTC Mar 14,2006 11:24 AM UTC WinForms 1
Tags: GridControl
Jan Eugenides
Asked On March 13, 2006 06:09 PM UTC

We''re using a simple 2-level hierarchical grid, 2 datasets, with a relation, pretty standard stuff. The grid works fine, expanding and collapsing as expected. The issue is this: if you select a child item, and then collapse the parent (so that the child is no longer visible), when you expand the node again the child is no longer selected (and it doesn''t appear in the Selections collection either). We need the child to stay selected, regardless of collapsed/expanded state. What''s the easiest method for doing this?

Administrator [Syncfusion]
Replied On March 14, 2006 11:24 AM UTC

Hi Jeugenides, Only the record based selection supports selecting records across the nested tables. Set the TableOption.AllowSelection = GridSelectionFlags.None otherwise the old GridModel based selection code will be used. Then the selected records can be retrieved form the Table.SelectedRecords collection, regardless of the record being collapsed or expanded. Please refer the attached sample. Regards, Calvin.



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

or the page will be automatically redirected to 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