I have bound the DataTable to the DataGrid control. How can I set the selected item programmatically ?
DataTable
DataGrid
Exam
You can always use SelectedItem property and bind it against row, as such:
SelectedItem
SelectedItem="{Binding ActiveRow}"
and in ViewModel do:
ViewModel
ActiveRow = secondRow;