Alternate Row Color

Is there a way to apply alternating row colors in Flutter SfDataGrid, like in Xamarin.Forms?


1 Reply 1 reply marked as answer

GR Gowtham Ravi Syncfusion Team October 7, 2025 07:21 AM UTC

Hi Rodrigo,
The Flutter SfDataGrid provides support for customizing the row background color. This can be achieved by modifying the buildRow method. Within this method, you can use the DataGridRowAdapter.color property to set the desired background color for each row.
We’ve included a Knowledge Base (KB) article for your reference. Kindly refer to it for further guidance.
Regards,
Gowtham R

Marked as answer
Loader.
Up arrow icon