Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
330
Sorting in ultragrid string column.
posted

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

Parents
No Data
Reply Children
No Data