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.

grid sorting

Thread ID:

Created:

Updated:

Platform:

Replies:

6916 Sep 4,2003 12:11 PM Sep 4,2003 05:37 PM Windows Forms 2
loading
Tags: GridControl
Andy Johnson
Asked On September 4, 2003 12:11 PM

I am trying to use a grid and sort when the header is clicked, I sucessfully added it to one grid but can't seem to get the second one working. I'm using the basic grid control then adding the following code snippet //turn off column selections - not absolutely needed but does simplify things this.gridControl1.AllowSelection = GridSelectionFlags.Any & ~GridSelectionFlags.Column; //add a sort header to the CellModels... (in 1.0, only available by default in GridDataBoundGrid) this.gridControl1.CellModels.Add("ColumnHeaderCell", new GridSortColumnHeaderCellModel(this.gridControl1.Model)); But it doesn't seem to be working I think I must have forgotten something but don't know what. Any help would be greatly appreciated.

Administrator [Syncfusion]
Replied On September 4, 2003 04:30 PM

Have you looked at this sample, Syncfusion\Essential Suite\Grid\Samples\Quick Start\GridControlSort? You can copy and paste code from that sample to your project to support sorting in a GridControl.

Administrator [Syncfusion]
Replied On September 4, 2003 05:37 PM

thanks for the info

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.

;