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.
Syncfusion Feedback

GridSortColumnHeaderCellModel and sort icon direction(GGC) URGENT

Thread ID:

Created:

Updated:

Platform:

Replies:

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

Hi,

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,

Fred



example_29af3f5e.zip

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.

Regards,
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,

Fred


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,
Fred


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.

Regards,
Srividhya R


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

;