This article demonstrates how to apply row hover background color in .NET MAUI DataGrid.
In SfDataGrid, the row hover highlighting effect can be enabled by configuring the AllowRowHoverHighlighting property to true.. To customize the background color when a row is hovered, use the RowHoveredBackground property within the SfDataGrid.DefaultStyle. This ensures that the specified color is applied to the row when the mouse hovers over it.
<ContentPage xmlns:syncfusion="http://schemas.syncfusion.com/maui">
<ContentPage.Content>
<syncfusion:SfDataGrid x:Name="dataGrid"
ItemsSource="{Binding OrderInfoCollection}"
AllowRowHoverHighlighting="True">
<syncfusion:SfDataGrid.DefaultStyle>
<syncfusion:DataGridStyle RowHoveredBackground ="#AFD5FB"/>
</syncfusion:SfDataGrid.DefaultStyle>
</syncfusion:SfDataGrid>
</ContentPage.Content>
</ContentPage>Download the complete sample from GitHub