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

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

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)

 

 

Article ID: Published Date: Last Revised Date: Platform: Control:
3046 12/16/2014 10/20/2015 WPF GridDataControl
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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