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
460
Xamdatagrid combobox set selectIndex by code
posted

I have this combox field in my xamdatagrid how can I change the selectedIndex by code I c# 

<igWPF:ComboBoxField Name="fejl" Label="Fejl" DisplayMemberPath="FejlTekst" ValuePath="FejlTekst" BindingType="Unbound" Visibility="Collapsed">

<igWPF:ComboBoxField.Settings>
<igWPF:FieldSettings>
<igWPF:FieldSettings.EditorStyle>
<Style TargetType="{x:Type igWPF:XamComboEditor}">
<Setter Property="ItemsSource" Value="{Binding DataItem.fejl}"/>
<Setter Property="DisplayMemberPath" Value="FejlTekst"/>
<Setter Property="SelectedIndex" Value="0"/>
<Setter Property="ValuePath" Value="{Binding DataItem.fejl}"/>

</Style>
</igWPF:FieldSettings.EditorStyle>
</igWPF:FieldSettings>
</igWPF:ComboBoxField.Settings>
</igWPF:ComboBoxField>