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. Image for the cookie policy date

syncfusion:GridTreeControl (I will Change the COLOR)

Hi,

i will Change the Color of  my GridTree ( GridHeaderBackround)

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

Thanks,


1 Reply

DA Divya A Syncfusion Team April 10, 2013 06:50 AM UTC

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.


Loader.
Up arrow icon