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

GridSortColumnHeaderCellModel and sort icon direction(GGC) URGENT

Thread ID:





77363 Oct 28,2008 08:34 PM UTC Oct 30,2008 10:53 AM UTC WinForms 4
Tags: GridControl
Administrator [Syncfusion]
Asked On October 28, 2008 08:34 PM UTC


I have a problem with the column header celltype. I want to change the behaviour of the column header cell. When I use the celltype="ColumnHeaderCell"(because this is the only way to show the sort direction icon), I can't change the cell color, appearance. In attachment, a picture of what the column header i want(with the sort direction icon and multisorting number). For this picture, I put "Static" for the celltype. How can i do that without create a new cell model.

Thank you,



Srividhya R [Syncfusion]
Replied On October 29, 2008 11:54 AM UTC

Hi Fred,

Please turn off the themes of column headers in order to apply styles.

Here is the sample code.

gridGroupingControl1.Appearance.ColumnHeaderCell.Themed = false;
gridGroupingControl1.Appearance.ColumnHeaderCell.BackColor = Color.SteelBlue;
gridGroupingControl1.Appearance.ColumnHeaderCell.TextColor = Color.White;

Let us know if this helps.

Srividhya R

Administrator [Syncfusion]
Replied On October 29, 2008 01:45 PM UTC

Thank you for your answer.

I tried what you suggested me but I can't do exactly what I want. I always have a look n feel like a button cell (3D), I want a flat cell(like Static cell) and I does not want any gradient colors.

Can you give me an example. I use grid grouping control.

Thank you,


Administrator [Syncfusion]
Replied On October 29, 2008 03:03 PM UTC

Another question,

Can we change the color of the sort triangle and the sort numbering(multicolumn sorting^

thank you,

Srividhya R [Syncfusion]
Replied On October 30, 2008 10:53 AM UTC

Hi Fred,

Thanks for the update.

To have flat column header, please set the celltype as 'static'. You need to handle TableControlCellDrawn event to draw custom-styled sort icons and multicolumn sort position numbers.

Here is a sample.

Please let us know if you have further queries.

Srividhya R


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

or the page will be automatically redirected to 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