Skip to content

Commit 8a72c13

Browse files
committed
Added highlights
1 parent b6ecda6 commit 8a72c13

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

MAUI/DataGrid/styling.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ public partial class MainPage : ContentPage
444444
You can enable row hover highlighting effect by setting `AllowRowHoverHighlighting` property to `true`. The default value is `false`. Also, you can change the mouse hover background color using the `RowHoveredBackground` property of [SfDataGrid.DefaultStyle](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.DataGrid.SfDataGrid.html#Syncfusion_Maui_DataGrid_SfDataGrid_DefaultStyleProperty).
445445

446446
{% tabs %}
447-
{% highlight xaml tabtitle="MainPage.xaml" %}
447+
{% highlight xaml hl_lines="5 7" %}
448448
<ContentPage xmlns:syncfusion="http://schemas.syncfusion.com/maui">
449449
<ContentPage.Content>
450450
<syncfusion:SfDataGrid x:Name="dataGrid"
@@ -457,12 +457,13 @@ You can enable row hover highlighting effect by setting `AllowRowHoverHighlighti
457457
</ContentPage.Content>
458458
</ContentPage>
459459
{% endhighlight %}
460-
{% highlight c# tabtitle="MainPage.xaml.cs" %}
460+
{% highlight c# hl_lines="6 7" %}
461461
public partial class MainPage : ContentPage
462462
{
463463
public MainPage()
464464
{
465465
InitializeComponent();
466+
this.dataGrid.AllowRowHoverHighlighting = true;
466467
this.dataGrid.DefaultStyle.RowHoveredBackground = Color.FromArgb("#AFD5FB");
467468
}
468469
}

0 commit comments

Comments
 (0)