Dear all,
I have the column (Datatype=system.string) in ultragrid. It is showing NA or decimal.
Actually the data is decimal (I have changed the value zero to be NA when showing in the grid. 0==> NA). But the sorting does not apply to decimal due to the datatype is string. The sorting is like below:
" 1 , 11, 2, 23, 3, 333, 4, NA " in ascending order. How can I make sorting in decimal with NA ==0 but the showing in the grid is "NA"? Is it possible??
Hi,
It was not clear to me that you were trying to sort the data and not sort the grid rows. But if that's what you want, then you are correct to use the ExternalSortMutli option. This option tells the grid to show the sort indicator but to not actually sort the rows in the grid.
It works when I set HeaderClickAction.ExternalSortMulti
Dear Mike,
When I am trying to use sort indicator.
if (sortOrder == SortOrder.Ascending) column.SortIndicator = Infragistics.Win.UltraWinGrid.SortIndicator.Ascending; else column.SortIndicator = Infragistics.Win.UltraWinGrid.SortIndicator.Descending;
I find that the default sorting of ultragrid happen, no matter where I set below code.
this.dtgCatItemList.DisplayLayout.Override.HeaderClickAction = HeaderClickAction.Select;
Do you have any methods to work??
When I disable the sorting of ultragrid, it works.
But how to make the header column sorting indicator show??
I find that the ultragrid format is changed when I assign the datatable to the grid in second time.
How could I make the ultragrid not changed in format, similar to the first time.