Home › Forums › WPF controls › Xceed DataGrid for WPF › programmatically selecting multiple items
I’m looking for a possibility to programmatically selected multiple items. The obvious way doesn’t work since DataGridControl.SelectedItems has just a getter.
Or the other way round: Is there a possibility to set the DataGrid.CurrentItem propoerty without having cleared the selection as long as the new current item is already selected?
Thanks for an answer.Kuno
Imported from legacy forums. Posted by Kuno (had 1881 views)
SelectedItems property is indeed read-only, but the instance of the collection present in the property is not…
Simply add the items you want to the SelectedItems collection.
Imported from legacy forums. Posted by Marcus [Xceed] (had 2994 views)