Skip to content

SelectedItems don't work  #198

@thunderhead021

Description

@thunderhead021

Describe the bug
I have a Datagrid with an ObservableCollection as the binding for SelectedItems. I didn't given SelectionMode, but even when I give it as Multiple, it also not work. The app freeze and close.

To Reproduce
Steps to reproduce the behavior:

  1. create DataGrid
  2. add ObservableCollection A as ItemsSource
  3. add ObservableCollection B as SelectedItems

Expected behavior
The app and DataGrid should be working like normal. And rows show selected effect when ObservableCollection B is update.

Desktop (please complete the following information):

  • OS: Win11
  • DataGrid v 4.0.4
  • Maui 9.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions