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.

How to apply RowStyle in SfDataGrid?

SfDataGrid allows you to apply style for the GridCells by using the GridColumn.CellStyle property. To apply RowStyle for a particular row/rows, you need to apply the same CellStyle for all the GridColumns in the row.

The following code example illustrates how to apply RowStyle for every 3rd row in the SfDataGrid.

 

Note that the BackgroundColor property for all the GridCells is binded with the same property “ID” to achieve the row style.

Refer the following code example for applying background color using converter.

 

The following screenshot shows the final outcome upon execution of the above code

The working sample for this KB can be downloaded from the following link

http://www.syncfusion.com/downloads/support/directtrac/general/ze/RowStyle-1514358486

 

 

Article ID: Published Date: Last Revised Date: Platform: Control:
5709 11/17/2015 12/15/2016 Xamarin.Forms SfDataGrid
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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.