Hi everyone,
Anybody having suggestions on how to apply Sort By Column(s) on my UltraWinGrid.
I have a Toolbar in which I would select a Sort menuitem which opens a Sort Component. What this Sort Component does is capture all the unhidden column names from the Active SmartPart Grid.
Now, I have been told that SortedColumn should not be used since, it does Group level sorting. Please let me know how do I apply Sort on column(s) .
From my Sort component I may select a few columns and set it's SortOrder Ascending or Descending.
On Pressing OK button of the component, I need to apply these Sort to the Column(s) of the underlying grid.
Please get me an immediate solution or the workaround for this.
Regards
Rajesh Saxena
apardeshi said:Now, I have been told that SortedColumn should not be used since, it does Group level sorting. Please let me know how do I apply Sort on column(s) .
I'm not sure what context this should be taken in, but you can use the UltraGridBand.SortedColumns.Add method to sort a column whether or not you are using the GroupBy functionality. You can also set the UltraGridColumn.SortIndicator property directly to sort by a given column.
Hithanks for your prompt response.
What is the best way to apply sort on multiple columns on the ultrawingrid?
1st Disable all the sort columns on the gridCan we use SortComparer implementing IComparer to resolve thisTill now, I have not used it but, I think this could be a way out.
If you have to share on this, please suggest in this regard.
I get a Hashtable list of the columns the user chooseDoes it do only 1st column sort and then compares with the values of other Columns to Sort and arranges the recordsAny Idea on working with IComparer
How about working on different types of data in case of multi-column sorts.
Thanks once again for your response.