Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1935
Problem with DisplayMemberPath in xamComboEditor
posted

I use the following XAML to display a XamComboEditor-field in my XamDataGrid

<igDP:Field Name="NoteType" Label="Type" Width="70">

                        <igDP:Field.Settings>

                            <igDP:FieldSettings EditorType="{x:Type igEditors:XamComboEditor}">

                                <igDP:FieldSettings.EditorStyle>

                                    <Style TargetType="{x:Type igEditors:XamComboEditor}">

                                        <Setter Property="ItemsSource" Value="{Binding NoteTypes}" />

                                        <Setter Property="DisplayMemberPath" Value="Name" />

                                    </Style>

                                </igDP:FieldSettings.EditorStyle>

                            </igDP:FieldSettings>

                        </igDP:Field.Settings>

                    </igDP:Field>

Name="NoteType" refers to the key in the table/collection that contains the name that should be displayed

The column is displayed in the DataGrid, but the Name of the NoteType isn't displayd, only the key.

Am I missing something here?

Parents Reply Children
No Data