WpfExtendedToolkit icon indicating copy to clipboard operation
WpfExtendedToolkit copied to clipboard

Exception when binding Column to dictionary index

Open Darz4 opened this issue 5 years ago • 1 comments

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 avatar May 29 '20 14:05 Darz4

Yes, don't think this is possible

jogibear9988 avatar Sep 08 '20 19:09 jogibear9988