AD
Administrator
Syncfusion Team
September 10, 2003 06:53 PM UTC
> Hi,
>
> We are using the GridControl.Data.SortByColumn. It is working great for text column. How about sorting for integers?
>
> Aaron
>
AD
Administrator
Syncfusion Team
September 10, 2003 06:55 PM UTC
Make sure you set the GridStyleInfo.CellValueType to typeof(int) so the grid knows you are using integers. You can do this by setting
grid.ColStyles[nCol].CellValueType = typeof(int);
If you look at the GridControlSort sample, it can sort integers properly.
AC
Aaron Ching
September 10, 2003 10:00 PM UTC
Thanks Clay as always.