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

How can I Allow Sorting in grid with type GridControl???

Thread ID:





50941 Oct 24,2006 09:05 AM UTC Oct 24,2006 07:48 PM UTC WinForms 1
Tags: GridControl
Asked On October 24, 2006 09:05 AM UTC

how can I to allow sorting in my grid with type GridControl by clicking on the collumn titles????

I show in it data in such way:
gridTypeSetSelector[0, 1].CellValue = "ID";
gridTypeSetSelector[0, 2].CellValue = "Select";
gridTypeSetSelector[0, 3].CellValue = "Convention Name";
gridTypeSetSelector[0, 4].CellValue = "Sql Expression";
gridTypeSetSelector.RowCount = 0;

foreach (DataRow row in dtConventionsForPreview.Rows)

this.gridTypeSetSelector[this.gridTypeSetSelector.RowCount, 1].CellValue = row[PduInstance.IdFieldName].ToString();
//if (_filteredObjects.Contains(obj))
// this.gridControl1[this.gridControl1.RowCount, 2].CellValue = "1";
this.gridTypeSetSelector[this.gridTypeSetSelector.RowCount, 3].CellValue = row["db_name"].ToString();
this.gridTypeSetSelector[this.gridTypeSetSelector.RowCount, 4].CellValue = row["sql_expression"].ToString();
//this.gridTypeSetSelector[this.gridControl1.RowCount, 0].Tag = obj;

Best regards, Alexander.

Administrator [Syncfusion]
Replied On October 24, 2006 07:48 PM UTC

Hi Alexander,

Please refer to the GridControlSort sample in the Browser Samples shipped with the product, which will help you to do sorting for the gridcontrol.

C:\Program Files\Syncfusion\Essential Studio\4.2\Windows\Grid\Samples\Quick Start\GridControlSort sample

Thanks for using Syncfusion Products.


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

or the page will be automatically redirected to 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