I need to persist "Y" or "N" back to my table. What am I doing wrong? Thanks!!
<igDP:Field Name="ALLOW_IND" Label="Allow"> <igDP:Field.Settings> <igDP:FieldSettings> <igDP:FieldSettings.EditorStyle> <Style TargetType="{x:Type igEditors:XamComboEditor}"> <Setter Property="SelectedItem" Value="{Binding DataItem.ALLOW_IND, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"></Setter> <Setter Property="Value" Value="{Binding DataItem.ALLOW_IND, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"></Setter> <Setter Property="ItemsProvider"> <Setter.Value> <igEditors:ComboBoxItemsProvider> <igEditors:ComboBoxItemsProvider.Items> <igEditors:ComboBoxDataItem DisplayText="Yes" Value="Y" /> <igEditors:ComboBoxDataItem DisplayText="No" Value="N" /> </igEditors:ComboBoxItemsProvider.Items> </igEditors:ComboBoxItemsProvider> </Setter.Value> </Setter> </Style> </igDP:FieldSettings.EditorStyle> </igDP:FieldSettings> </igDP:Field.Settings> </igDP:Field>
Hello,
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.
As usual, minutes after I post I guess the answer. Well, I had to get the clock started.
For anyone who is interested:
<igDP:Field Name="ALLOW_IND" Label="Allow"> <igDP:Field.Settings> <igDP:FieldSettings> <igDP:FieldSettings.EditorStyle> <Style TargetType="{x:Type igEditors:XamComboEditor}"> <Setter Property="Value" Value="{Binding DataItem.ALLOW_IND, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"></Setter> <Setter Property="ItemsProvider"> <Setter.Value> <igEditors:ComboBoxItemsProvider> <igEditors:ComboBoxItemsProvider.Items> <igEditors:ComboBoxDataItem DisplayText="Yes" Value="Y" /> <igEditors:ComboBoxDataItem DisplayText="No" Value="N" /> </igEditors:ComboBoxItemsProvider.Items> </igEditors:ComboBoxItemsProvider> </Setter.Value> </Setter> </Style> </igDP:FieldSettings.EditorStyle> </igDP:FieldSettings> </igDP:Field.Settings> </igDP:Field>