Home Forums WPF controls Xceed DataGrid for WPF programmatically selecting multiple items

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #26037 |

    Hi all

    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)

    Xceed Support
    Member
    Post count: 5658

    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)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.