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

Selection does not change accordingly

Thread ID:





36668 Nov 7,2005 03:57 AM UTC Nov 7,2005 02:24 PM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On November 7, 2005 03:57 AM UTC

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 02:24 PM UTC

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


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