You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<td> Allows selection of a single row or cell only. However, upon tapping the row or cell again, the selection is cleared. Similar to single mode, upon selecting the next row or cell, the selection in the previous row or cell is cleared. </td>
85
85
</tr>
86
+
<td> {{'[Extended]()'| markdownify }} </td>
87
+
<td> Allows selecting multiple rows or cells. You can select multiple rows or cells in the SfDataGrid by dragging the mouse or by using the key modifiers <kbd>Ctrl</kbd> and <kbd>Shift</kbd>. </td>
88
+
</tr>
86
89
</table>
87
90
88
91
## Disable selection for rows and columns
@@ -383,6 +386,124 @@ The selected rows will be deleted.
383
386
</tr>
384
387
</table>
385
388
389
+
## Multiple Row or Cell Selection
390
+
391
+
The `SfDataGrid` allows you to select multiple rows or cells by setting `SelectionMode` property as [Extended](), where you can select multiple rows or cells by dragging the mouse on SfDataGrid and also using the key modifiers.
392
+
393
+
While using `Extended`, you can select multiple rows or cells by pressing the key modifiers <kbd>Ctrl</kbd> and <kbd>Shift</kbd>.
394
+
395
+
{% tabs %}
396
+
{% highlight xaml %}
397
+
<syncfusion:SfDataGrid x:Name="dataGrid"
398
+
SelectionUnit="Cell"
399
+
NavigationMode="Cell"
400
+
SelectionMode="Extended"
401
+
ItemsSource="{Binding Orders}">
402
+
{% endhighlight %}
403
+
{% endtabs %}
404
+
405
+
<imgalt="Extended selection support in .NET MAUI DataGrid"src="Images\selection\maui-dataGrid-extendedSelection.png"width="404"/>
406
+
407
+
## Shift and ctrl Key Combinations
408
+
409
+
When the `SelectionMode` is set to [Extended](), you can select multiple rows or cells using the navigation keys together with the <kbd>Shift</kbd> key. Before navigation begins, the current cell is marked as the pressed (anchor) cell, and the selection includes all rows or cells between the pressed cell and the current cell.
The `Extended Selection` in [SfDataGrid](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.DataGrid.html) has certain limitations that should be considered while using this feature:
502
+
503
+
- Drag selection using the mouse pointer is not supported on Android or iOS.
504
+
- Drag selection cannot be used together with PullToRefresh, Swiping, or Row drag-and-drop features.
505
+
- Extended selection is not supported in the master-details view.
506
+
386
507
## Move Current Cell
387
508
The [CurrentCell](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.DataGrid.SfDataGrid.html#Syncfusion_Maui_DataGrid_SfDataGrid_CurrentCell) can be moved to a particular [RowColumnIndex](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.GridCommon.ScrollAxis.RowColumnIndex.html) by using the [SfDataGrid.MoveCurrentCellTo()](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.DataGrid.SfDataGrid.html#Syncfusion_Maui_DataGrid_SfDataGrid_MoveCurrentCellTo_Syncfusion_Maui_GridCommon_ScrollAxis_RowColumnIndex_System_Boolean_) method. This method is not applicable when the `SfDataGrid.SelectionMode` is None or the `NavigationMode` is Row.
0 commit comments