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.
Unfortunately, activation email could not send to your email. Please try again.

Losing selections in hierarchical grid

Thread ID:

Created:

Updated:

Platform:

Replies:

41847 Mar 13,2006 01:09 PM Mar 14,2006 06:24 AM Windows Forms 1
loading
Tags: GridControl
Jan Eugenides
Asked On March 13, 2006 01:09 PM

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 06:24 AM

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.

41847.zip

CONFIRMATION

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.

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.

;