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.

sorting the dispalyed hierarchy data

Thread ID:

Created:

Updated:

Platform:

Replies:

46107 Jul 5,2006 11:44 PM Jul 6,2006 11:25 AM Windows Forms 1
loading
Tags: GridControl
I Gusti Ngurah Wirawan
Asked On July 5, 2006 11:44 PM

Hi, I have a problem i cannot resolve. My problem is if have a dataset with relation in it, i bind the parent table to grid and if i want to sort the parent table i just use the defaultview property of table. My question is how to sort the child data table? regards wirawan

Administrator [Syncfusion]
Replied On July 6, 2006 11:25 AM

Hi Wirawan, In GridDataBoundGrid, you need to handle the sorting of hierarchical data yourself. Please refer to the following link for more details on sorting hierarchy data in GridDataBoundGrid. Forum : http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=9239. In GroupingGrid, You can achieve this by adding the column in SortedColumns. The following is the code snippet >>>>>>>>>>>>>>>>>>>>>>>>>> GridTableDescriptor gd = this.gridGroupingControl1.GetTableDescriptor("MyChildTable"); gd.SortedColumns.Add("childID",ListSortDirection.Descending); >>>>>>>>>>>>>>>>>>>>>>>>>> Best regards, Madhan

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.

;