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
440
ComboBox in DataGrid
posted

Here's the scenario:

I'm binding my DataGrid to a list of ObjectA. ObjectA has a couple of simple properties that should be displayed in the DataGrid and an property of type IEnumerable<ObjectB> (EnumarableProperty). The IEnumerable is supposed to be in a combobox on each line in the grid. But I only get the "+" infront of each record. What am I doing wrong:

<DataPresenter:Field Name="EnumerableProperty" Label="WC#">
                            <DataPresenter:Field.Settings>
                                <DataPresenter:FieldSettings EditorType="{x:Type igEditors:XamComboEditor}" >
                                    <DataPresenter:FieldSettings.EditorStyle>
                                        <Style TargetType="{x:Type igEditors:XamComboEditor}">
                                            <Setter Property="ItemsSource" Value="{Binding EnumerableProperty}" />
                                            <Setter Property="IsEditable" Value="True" />
                                        </Style>
                                    </DataPresenter:FieldSettings.EditorStyle>
                                </DataPresenter:FieldSettings>
                            </DataPresenter:Field.Settings>
                        </DataPresenter:Field>