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.
Unfortunately, activation email could not send to your email. Please try again.

Sorting for Integers

Thread ID:

Created:

Updated:

Platform:

Replies:

7055 Sep 10,2003 02:44 PM Sep 10,2003 06:00 PM Windows Forms 3
loading
Tags: GridControl
Aaron Ching
Asked On September 10, 2003 02:44 PM

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

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

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

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.

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.

;