2X faster development
The ultimate Xamarin UI toolkit to boost your development speed.
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.
Screenshot:
Sample Link: |
2X faster development
The ultimate Xamarin UI toolkit to boost your development speed.
This page will automatically be redirected to the sign-in page in 10 seconds.
This will set only the background color. How to set the foreground color for selection?