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
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|