By default, SfDataGrid applies a common background color for the selected rows. However, it also provides extensibility to have multiple selection colors when touching the rows by writing a custom SelectionController derived from GridSelectionController property. You need to override the GetSelectionColor method to apply different colors for selection in runtime.
The following code example illustrates how to set different colors for the selected rows in SfDataGrid.
This page will automatically be redirected to the sign-in page in 10 seconds.