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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to apply RowStyle in SfDataGrid?

Platform: Xamarin.Forms |
Control: SfDataGrid
Tags: styling

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

 

 

2X faster development

The ultimate Xamarin 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.

Up arrow icon

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

Live Chat Icon For mobile