Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception when binding Column to dictionary index #19

Open
Darz4 opened this issue May 29, 2020 · 1 comment
Open

Exception when binding Column to dictionary index #19

Darz4 opened this issue May 29, 2020 · 1 comment

Comments

@Darz4
Copy link

Darz4 commented May 29, 2020

Hello,

It seems like the FieldName property does not support dictionary indexers, as it throws an exception.

<dgc:DataGridControl Name="dataGridTest" AutoCreateColumns="False" ReadOnly="True">
    <dgc:DataGridControl.Columns>
        <dgc:Column Title="Key 1" FieldName="Dictionary[Key1]" />
        <dgc:Column Title="Key 2" FieldName="Dictionary[Key2]" />
    </dgc:DataGridControl.Columns>
</dgc:DataGridControl>

The exception occurs in DataItemTypeDescriptionProvider.cs line 35 : System.ArgumentException: 'instance'

@Darz4 Darz4 changed the title Exception when using dictionary indexer Exception when binding Column to dictionary index May 29, 2020
@jogibear9988
Copy link
Member

Yes, don't think this is possible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants