SfDataGrid allows you clear the selection programmatically in two ways either by changing the SelectionMode to “None” or by using the SelectionController.ClearSelection method. You can clear the selection in a button click in MVVM by adding command and command parameter to the button.
Refer the below code example in which a Command is triggered for clearing the selection in SfDataGrid. The reference of SfDataGrid is passed as a CommandParameter to a button in order to clear the selection in the view model.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|
or the page will be automatically redirected to sign-in page in 10 seconds.