Hi all,
I have ultragrid column named Rank, it has value range from 1-10 and default value as *. So we made the column datatype as string instead of numeric just to allow default value as "*". If the column has *,4,5,10. if we sort by ascending it display as *,10,4,5. but the expected result is *,4,5,10.
How to achieve this?
* has to considered as 0.
i am using the following code for sorting.
UltraGridColumn selectedColumn = SelectedColumns.FirstOrDefault();
UltraGridBand band = bgFMEA.DisplayLayout.Bands[0];
band.SortedColumns.Clear();
band.SortedColumns.Add(selectedColumn.Key, false);
selectedColumn.SortIndicator = SortIndicator.Ascending;
Thanks in advance
Regards
Vijay A
Hi Vijay,
You can write your own SortComparer to sort the column how you describe, http://help.infragistics.com/NetAdvantage/WinForms/2010.3/CLR2.0?page=Infragistics2.Win.UltraWinGrid.v10.3~Infragistics.Win.UltraWinGrid.UltraGridColumn~SortComparer.html.