dotnetprojects/WpfExtendedToolkit

Exception when binding Column to dictionary index

Darz4 opened this issue · 1 comments

Darz4 commented

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'

Yes, don't think this is possible