Skip to content

PropertyGrid bind to Dictionary throw NotSupportedException on editor closing #1784

@daihung

Description

@daihung

Hi,

I am experiencing an issue with the PropertyGrid when binding to a Dictionary<int, object>. The binding works correctly, and I can see the keys and values. However, when I open the values collection and then click OK/Cancel, a NotSupportedException is thrown with the message: “Mutating a value collection derived from a dictionary is not allowed.”

Steps to Reproduce:

  1. Bind a Dictionary<int, object> to the SelectedObject property.
  2. Open the values collection in the PropertyGrid.
  3. OK/Cancel the changes.

Thanks.

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