Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

C#
public event EventHandler<SelectionChangedEventArgs> SelectionChanged

#Event Data

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

Property Description
AddedItems Gets the collection of newly added items.
Item Gets the underlying data object of the selected item.
RemovedItems Gets the collection of removed items.
RowHandle Returns 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.

Grid Data Rows

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