SfDataGrid provides two events for selection : SelectionChanging and SelectionChanged. It provides the added items and the removed items as arguments in it.
Refer the below code example in which the selection changed event is hooked to get the data of the selected row.
The below code illustrates how to get the selected row information from the argument of SelectionChanged event.
Note: SfDataGrid.SelectionChanging event raise while selecting a row at the execution time before the selection is completed. It allows you to cancel the selection action by setting the “Cancel” property in the argument.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|