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
610
Display combo dropdown as System.Data.DataRowView
posted

Hi,

Previously I posted my question at the end of http://community.infragistics.com/forums/t/28291.aspx, then I realized it's already marked as Answered, so I make this new post:

 

I set ItemsSource, DisplayMemberPath and ValuePath all on ItemsProvider, however, the dropdown shows only System.Data.DataRowView for each item, but when I select one item, I do see correct value displayed. I use the combobox editor in grid.

Here is digested from my code:

in XAML

                <igEditors:ComboBoxItemsProvider x:Key="notificationTypesProvider"
                           DisplayMemberPath="desc" ValuePath="code">
                </igEditors:ComboBoxItemsProvider>

...

                        <igDP:Field Name="notificationType"
                                    Label="type"
                                    Width="100">
                            <igDP:Field.Settings>
                                <igDP:FieldSettings>
                                    <igDP:FieldSettings.EditorStyle>
                                        <Style TargetType="{x:Type ComboEditor:XamComboEditor}">
                                            <Setter Property="ItemsProvider" Value="{StaticResource notificationTypesProvider}" />
                                        </Style>
                                    </igDP:FieldSettings.EditorStyle>
                                </igDP:FieldSettings>
                            </igDP:Field.Settings>
                        </igDP:Field>

in the code, i set ItemsProvider.ItemsSource

Please suggest,

 

Thanks!

Yu