Hello,
I have an WebHierarchicalDataGrid with 3 bands (parent/child/grandchild).
The grid DataSource is set to a DataSet on page load.
How can I specify the sort order in which the rows are displayed in the grid ?
I tried using a DataViewManager to set the Sort on each tables view, but when I assign the DataViewManager to the grid DataSource, I get an error "Data source contains no schema data".
I do not need the grid sorting bahavior, where the user can can click on columns to sort. I just want to set a default initial sort order.
I'm looking for doing the same thing !
How to set a default sort on a WHDG
Hello canam, UCF user,
It has been a while since you have made your post, but I suppose the other community members can benefit from this answer as well.
In the following article the programmatic setting of the sorting for both parent and child band in the “WebHierarchicalDataGrid” - http://help.infragistics.com/Help/NetAdvantage/ASPNET/2010.3/CLR4.0/html/WebHierarchicalDataGrid_Sort_Columns_in_Code.html
The article shows how to set sorting both on Client and Server-Side.
You can also refer to the following forum thread - http://community.infragistics.com/forums/p/54392/281459.aspx#281459 – that shows how to execute multicolumn sorting from Code-Behind.
I hope that this information will be helpful in your scenarios.