I have an User control having UltraWebGrid in my application. I am applying GroupByColumn on the data for three levels:
like
UltraWebGrid1.Rows.Band.Columns.FromKey("COLUMN_NAME1").IsGroupByColumn = true;
UltraWebGrid1.Rows.Band.Columns.FromKey("COLUMN_NAME2").IsGroupByColumn = true;
UltraWebGrid1.Rows.Band.Columns.FromKey("COLUMN_NAME3").IsGroupByColumn = true;
after that I need to apply order by or sort the data before displaying on the web page page. I cannot use the UI for sorting data.
My data is already sorted as I used Order By in the select query.
The data is also coming sorted from database but after applying the "IsGroupByColumn" my data sorting is gone and I cannot find any way to sort the data before displaying in UI.
If anyone has faced this problem please share your solution if any.
Thanks.
Hi Ajay,
Thank you for posting in the community.
You can achieve sorting on page load using code, similar to the following:
UltraWebGrid1.Columns.FromKey("ColumnName").SortIndicator = Infragistics.WebUI.UltraWebGrid.SortIndicator.Descending;
Please let me know if this helps.
Hello Ajay,
If you need any further assistance with the matter, please do not hesitate to ask.