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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Sorting in GridControl

Thread ID:





22973 Dec 31,2004 02:43 AM UTC Dec 31,2004 06:00 AM UTC WinForms 1
Tags: GridControl
Maqsood Ahmed
Asked On December 31, 2004 02:43 AM UTC

Hello! 1. Can I sort a column by clicking at its header? 2. Is there anyway to define default sorting? Thanx in advance. Maqsood Ahmed Kolachi Advanced Technologies http://www.kolachi.net

Administrator [Syncfusion]
Replied On December 31, 2004 06:00 AM UTC

Take a look at the Grid\Samples\Quick Start\GridControlSort sample. It shos ho you can add some code to your project to support sorting in a GridControl. To do custom sorting you need an object that implements IComparer to define your object comparisons. The SortByColumn call used in the above referenced sample accepts an IComparer object to allow for custom sorting.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon