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.
Syncfusion Feedback

GDBD Sort

Thread ID:

Created:

Updated:

Platform:

Replies:

57458 Mar 5,2007 02:04 PM UTC Mar 5,2007 11:21 PM UTC Windows Forms 3
loading
Tags: GridControl
Simon Kakon
Asked On March 5, 2007 02:04 PM UTC

Hi,
I would like to have the same row (data) selected after a sort action.
Is there a way to do that ?

Thanks

Simon.

Administrator [Syncfusion]
Replied On March 5, 2007 03:42 PM UTC

Hi Simon,

There is no built-in support for this. If you want to keep selection on current row after the sort changes in DataBoundGrid, you would have to derive the GridDataBound control and override the SortColumn Method to acheive this. Please refer to the attached sample for more details and let me know if this helps.

http://websamples.syncfusion.com/samples/Grid.Windows/GDBGKeepSelectionOnSort/main.htm

Best regards,
Haneef

Simon Kakon
Replied On March 5, 2007 04:57 PM UTC

Thanks for your response.
But your sample keeps the index.
In my case, I would like to to have the same datarow (not the row index) selected after sort action.


>Hi Simon,

There is no built-in support for this. If you want to keep selection on current row after the sort changes in DataBoundGrid, you would have to derive the GridDataBound control and override the SortColumn Method to acheive this. Please refer to the attached sample for more details and let me know if this helps.

http://websamples.syncfusion.com/samples/Grid.Windows/GDBGKeepSelectionOnSort/main.htm

Best regards,
Haneef

Administrator [Syncfusion]
Replied On March 5, 2007 11:21 PM UTC

Hi Simon,

Please try the attached sample in below link and let me know if this helps.
http://websamples.syncfusion.com/samples/Grid.Windows/F57458/main.htm

Best regards,
Haneef

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.

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

;