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
close icon

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 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.

Loader.
Live Chat Icon For mobile
Up arrow icon