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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridDataBoundGrid hidden column sort

Thread ID:

Created:

Updated:

Platform:

Replies:

99979 Jun 24,2011 01:32 AM UTC Jun 29,2011 11:16 AM UTC ASP.NET Web Forms (Classic) 1
loading
Tags: GridGroupingControl
JBS Developers
Asked On June 24, 2011 01:32 AM UTC

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 11:16 AM UTC

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.

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

;