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.

GridDataBoundGrid hidden column sort

Thread ID:

Created:

Updated:

Platform:

Replies:

99979 Jun 23,2011 09:32 PM Jun 29,2011 07:16 AM ASP.NET Web Forms (Classic) 1
loading
Tags: GridGroupingControl
JBS Developers
Asked On June 23, 2011 09:32 PM

It is possible to have a primary & secondary sort on this grid?

The primary sort will based on a hidden column and secondary sort will be the column which the user clicked on the column header. Hence, displays ASC/DESC arrow on the visible secondary sort column.


Jisha Joy [Syncfusion]
Replied On June 29, 2011 07:16 AM

Hi,

Thank you for using Syncfusion products.

You can achieve the desired behavior by adding the necessary column to the SortedColumns collections,

this.gridGroupingControl1.TableDescriptor.SortedColumns.Add("Id");
this.gridGroupingControl1.TableDescriptor.VisibleColumns.Remove("Id");
this.gridGroupingControl1.TableDescriptor.SortedColumns.Add("Values");

Please find the attached sample.

Regards,
Jisha





GCCSorting_acea7dfe.zip

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.

;