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

grid sorting

Thread ID:

Created:

Updated:

Platform:

Replies:

6916 Sep 4,2003 04:11 PM UTC Sep 4,2003 09:37 PM UTC WinForms 2
loading
Tags: GridControl
Andy Johnson
Asked On September 4, 2003 04:11 PM UTC

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 08:30 PM UTC

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 09:37 PM UTC

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.

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

;