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

Sort By Column Issue (v

Thread ID:





57652 Mar 7,2007 09:30 PM UTC Mar 7,2007 11:25 PM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On March 7, 2007 09:30 PM UTC


I'm using a GDBG with 10 rows (say). I am sorting the grid by calling SortColumn method. So far no issues, everything works fine.

When I hide some rows and then do sort i see my hidden column appearing in the grid.

I have two rows in the grid.
The column TestId value in the 1st row is 1 and in the 2nd is 2. Now I hide the 1st row. I sort the TestId column and i see 2nd row is switching to 1st row. I can see only one row in the grid. Again sort the column I see 2nd row appearing.

It appears that the grid sorting doesn't ignore the hidden rows and also it doesn't handle then hidden rows case.

What's the solution for the same?


Administrator [Syncfusion]
Replied On March 7, 2007 11:25 PM UTC

Hi Amiya,

There is no built-in support for this. If you want to keep HiddenRange 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.

Sample : GDBGKeepHiddenRangeANDSelectionOnSort.zip

Best regards,


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