Hello
In my ultrawingrid, for one of the column I need to show currency symbol (like $20,000), so for this the datatype for the column is given as String, so since it is a string datatype it is sorting alphabatically, but I need to sort this according to the amount value given on header click action.
I was using sortcomparer class. I had created one hidden column and applied -1 value for nulls. On header click my original column sorts according to the hidden column.
Public Class LMSSortComparer Implements IComparer Public Function Compare(ByVal x As Object, ByVal y As Object) As Integer Implements System.Collections.IComparer.Compare Dim xCell As UltraGridCell = DirectCast(x, UltraGridCell) Dim yCell As UltraGridCell = DirectCast(y, UltraGridCell) If xCell.Column.Key = "Current Rate" Or xCell.Column.Key = "Rate" Or xCell.Column.Key = "Percentage Rate" Then Return Decimal.Compare(DirectCast(xCell.Row.Cells("sortRate").Value, Decimal), DirectCast(yCell.Row.Cells("sortRate").Value, Decimal)) End If
How did you manage to show NA dfifferent from 0 ??I Just knwo format string handels 3 states i.e. +ive number negatiev number and Zero, hows Null handeled ??Say i use nullable int in Grid (int?)
Thanks very much.
The help installs with the product and it's also available on the Infragistics web site: Infragistics Online Help Documentation
No I was asking you that is there any Infragistics help topics that explains each property in the software installed(Infragistics).