Skip to content

Commit e52682c

Browse files
committed
Code changes regarding C# page
1 parent 1129a2d commit e52682c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

MAUI/DataGrid/selection.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,12 @@ While using `Extended`, you can select multiple rows or cells by pressing the ke
400400
SelectionMode="Extended"
401401
ItemsSource="{Binding Orders}">
402402
{% endhighlight %}
403+
404+
{% highlight c# %}
405+
this.dataGrid.SelectionUnit = DataGridSelectionUnit.Cell;
406+
this.dataGrid.NavigationMode = DataGridNavigationMode.Cell;
407+
this.dataGrid.SelectionMode = DataGridSelectionMode.Extended;
408+
{% endhighlight %}
403409
{% endtabs %}
404410

405411
<img alt="Extended selection support in .NET MAUI DataGrid" src="Images\selection\maui-dataGrid-extendedSelection.png" width="404"/>

0 commit comments

Comments
 (0)