Back to Devexpress

DataGridView.SelectionChanged Event

maui-devexpress-dot-maui-dot-datagrid-dot-datagridview-fd7c1d15.md

latest2.0 KB
Original Source

DataGridView.SelectionChanged Event

Fires when the selected row is changed.

Namespace : DevExpress.Maui.DataGrid

Assembly : DevExpress.Maui.DataGrid.dll

NuGet Package : DevExpress.Maui.DataGrid

Declaration

csharp
public event EventHandler<SelectionChangedEventArgs> SelectionChanged

Event Data

The SelectionChanged event's data class is SelectionChangedEventArgs. The following properties provide information specific to this event:

PropertyDescription
AddedItemsGets the collection of newly added items.
ItemGets the underlying data object of the selected item.
RemovedItemsGets the collection of removed items.
RowHandleReturns the handle of the row to which the selected item belongs.

Remarks

When a user taps a data row in the grid, this row becomes selected.

To prevent users from selecting rows, set the SelectionMode property to SelectionMode.None.

For more information, refer to the following section: How to Select Rows in DevExpress Data Grid for .NET MAUI.

See Also

DataGridView Class

DataGridView Members

DevExpress.Maui.DataGrid Namespace