I'll start off by saying that I'm still new to WPF and even more so Infragistics...so bare with me.
I have a XamDataGrid and I want to add a ComboBox to the add row for a specific column. We have a collection of Strings (in List<String>) that I want to display in the combo box. I've seen a lot of examples that show to use a ComboBoxItemProvider but not sure if this is the correct / only way to load the data in the ComboBox. Also, I want to set the binding all in the xaml and not in the code behind.
Are there any examples on how to do this? Or any idea?
HI,
If you want to do everything in xaml the ComboBoxitem provider is a good way to go.
Here a help link on using XamComboEditior to Edit a Field in XamDataGrid
http://help.infragistics.com/NetAdvantage/WPF/2010.3/CLR4.0/?page=xamComboEditor_Using_xamComboEditor_to_Edit_a_Field_in_xamDataGrid.html
Sincerely
Matt
Developer Support Engineer
Tried to simplify some of the coding into this...but does not seem to work. In my drop down I get nothing but blank rows..
<igDP:UnboundField Name="ConditionName" Label="Condition Name" Visibility="Visible"> <igDP:Field.Settings> <igDP:FieldSettings EditorType="{x:Type igEditors:XamComboEditor}" EditAsType="{x:Type igEditors:XamComboEditor}"> <igDP:FieldSettings.EditorStyle> <Style TargetType="{x:Type igEditors:XamComboEditor}"> <Setter Property="ItemsProvider"> <Setter.Value> <igEditors:ComboBoxItemsProvider ItemsSource="{Binding Source={DynamicResource MatchedSecondApprovalCollectionView}}" DisplayMemberPath="RuleName.DataValue" ValuePath="RuleId.DataValue" /> </Setter.Value> </Setter> </Style> </igDP:FieldSettings.EditorStyle> </igDP:FieldSettings> </igDP:Field.Settings></igDP:UnboundField>
Any help is greatly appreciated!!