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

How to change the background of RowHeader based on business logic?

Platform: WPF |
Control: GridDataControl |
Published Date: December 16, 2014 |
Last Revised Date: October 20, 2015

RowHeader is a special Column used to indicate the row status like Current Row and you can enable or disable the RowHeader by setting the ShowRowHeader property in GridDataControl.

RowHeader allows you to customize the background based on the business logic .The following screenshot displays the default format of RowHeader.

Figure 1: Default style of RowHeader

You can change the background color of RowHeader Cell by using QueryCellInfo event that is used to customize each and every cell in the required format and the event is raised for each cell that requires redrawing. This is illustrated in the following code example.

C#

Execute the above code to change the RowHeader’s default color into pink color whose corresponding status cell value is true that is illustrated in the following screenshot.

Figure 2: Background customization of RowHeader

Please refer the following sample for to change the background of Row header based on the business logic.

Sample Link: BackGroundColor_of_RowHeader(GDC)

 

 

2X faster development

The ultimate WPF UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

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