We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Sorting for Integers

Hi, We are using the GridControl.Data.SortByColumn. It is working great for text column. How about sorting for integers? Aaron

3 Replies

AD Administrator Syncfusion Team September 10, 2003 02:53 PM

> 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 02:55 PM

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 06:00 PM

Thanks Clay as always.

Loader.
Live Chat Icon For mobile
Up arrow icon