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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Sorting for Integers

Thread ID:

Created:

Updated:

Platform:

Replies:

7055 Sep 10,2003 06:44 PM UTC Sep 10,2003 10:00 PM UTC WinForms 3
loading
Tags: GridControl
Aaron Ching
Asked On September 10, 2003 06:44 PM UTC

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

Administrator [Syncfusion]
Replied On 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 >

Administrator [Syncfusion]
Replied On 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.

Aaron Ching
Replied On September 10, 2003 10:00 PM UTC

Thanks Clay as always.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;