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.

Sort By Column Issue (v 2.1.0.9)

Thread ID:

Created:

Updated:

Platform:

Replies:

57652 Mar 7,2007 04:30 PM Mar 7,2007 06:25 PM Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On March 7, 2007 04:30 PM

Hi,

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.

Ex:
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?

Thanks,
Amiya


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

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,
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.

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.

;