GLC and ColumnHeaderCell

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".

2 Replies

RA Rajagopal Syncfusion Team 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.
http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=118

The GridListControl has no built-in support for sorting. The below forum thread discusses one way to accomplish this.
http://syncfusion.com/Support/Forums/message.aspx?MessageID=21917

We recommend using GridDataBoundGrid / GridGroupingControl to achieve the intend behavior. Please refer to the sample for more details.
http://www.syncfusion.com/Support/user/uploads/Grids_GridListControlLook_9eeff321.zip

Let me know if you have any other questions.

Regards,
Rajagopal


AL Alex 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."

Loader.
Up arrow icon