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:GridTreeControl (I will Change the COLOR)

Thread ID:

Created:

Updated:

Platform:

Replies:

107999 Mar 28,2013 11:02 AM Apr 10,2013 02:50 AM WPF 1
loading
Tags: GridControl
ali
Asked On March 28, 2013 11:02 AM

Hi,

i will Change the Color of  my GridTree ( GridHeaderBackround)

I've tried everything, (Brushes, Backround, Behaviour...) ... But it will not do. 

Thanks,


Divya A [Syncfusion]
Replied On April 10, 2013 02:50 AM

Hi Ali,

 

Sorry for the delay in getting back to you.

 

You can set the Background color for your GridTreeControl Header Cell, by implementing StyleManager.

 

 

Code Snippet:

 

 <syncfusion:GridTreeControl.StyleManager>

     <syncfusion:GridTreeStyleManager x:Name="style">

         <syncfusion:GridTreeStyleManager.HeaderAppearance>

             <syncfusion:TreeHeaderAppearance HeaderBackgroundBrush="Red" HeaderForegroundBrush="White"/>

         </syncfusion:GridTreeStyleManager.HeaderAppearance>

     </syncfusion:GridTreeStyleManager>

</syncfusion:GridTreeControl.StyleManager>

 

 

Using StyleMangaer you can optimize the appearances of the following:

 

1.       CellAppearance

2.       ExpanderAppearance

3.       HeaderAppearance

4.       RowAppearance

 

To know more about applying Styles to GridTreeControl using  StyleManager, you may also refer the following link

 

http://help.syncfusion.com/UG/User%20Interface/WPF/Grid/#!documents/addingstylestoanapplication1.htm

 

Regards,

Divya.


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.

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.

;