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.

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

Thread ID:





50941 Oct 24,2006 05:05 AM Oct 24,2006 03:48 PM Windows Forms 1
Tags: GridControl
Asked On October 24, 2006 05:05 AM

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 03:48 PM

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.

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.