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.

Selection does not change accordingly

Thread ID:

Created:

Updated:

Platform:

Replies:

36668 Nov 6,2005 10:57 PM Nov 7,2005 09:24 AM Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On November 6, 2005 10:57 PM

I have a GridDataBoundGrid with extended selection enabled and sorted by particular column, which is not the primary key for the underlying data table. When the new data row is added to the underlying data table, the selection will not change accordingly. That is, user has selected row 1 and row 3 in the sorted view. When a new row added and becoming the row 1 according to the sorting criteria, my expected selection should be row 2 and row 4 rather than remaining row 1 and row 3. Any idea ?

Jayakumar Natarajan [Syncfusion]
Replied On November 7, 2005 09:24 AM

Hi MF, GridDataBoundGrid doesn''t have built in support for associating selected rows with the underlying DataRows whereas GridGroupingControl has this feature. To get this in GDBG, you can try this approach. Before the rows are added in the DataTable, you can store the PrimaryKeys of the selected rows in a datastore. After the new rows are added, you can re-select the rows that has these unique primary keys. Here is a sample. Best regards, Jay

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.

;