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

GLC and ColumnHeaderCell

Thread ID:





67896 Sep 4,2007 07:28 AM UTC Sep 5,2007 03:55 PM UTC WinForms 2
Tags: GridControl
Asked On September 4, 2007 07:28 AM UTC

The question is how to display sorting glyph on sorting column in GLC.

GC and ColumnHeaderCell works fine if i want to display sorting glyph on sorting clm. But the same approach isn't working on GridListControl. I mean:

GridControl gc = gridList.Grid;
gc.CellModels.Add("ColumnHeaderCell", new GridSortColumnHeaderCellModel(gc.Model));


and then
OnCellClick ...
gc[0, sortIndex].CellType = "ColumnHeaderCell";

CellType remains the same, i.e. "Header".

Rajagopal [Syncfusion]
Replied On September 5, 2007 02:16 AM UTC

Hi Alex,

Thanks for your interest in Syncfusion Products.

All the features listed for the GridListControl are easily achievable by using the GridDataBoundGrid / GroupingControl with minimum code. The look and feel of the GridDataBoundGrid / GridGroupingControl can be made similar to GridListControl.

Please refer to the following KB article that shows the way to achieve the look and feel similar to GridListControl.

The GridListControl has no built-in support for sorting. The below forum thread discusses one way to accomplish this.

We recommend using GridDataBoundGrid / GridGroupingControl to achieve the intend behavior. Please refer to the sample for more details.

Let me know if you have any other questions.


Replied On September 5, 2007 03:55 PM UTC

Thanks, Rajagopal.
From articles you pointed out following tip resolved my problem:
"Getting a sort icon in the header will require you to handle the embedded grid's QueryCellInfo, and set the e.Style.CellType property there."


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