Good Morning,
I use a XamComboBoxEditor in the XamDataGrid, and i need fill the XamComboBoxEditor with ItemSource of another XamDataGrid.
Xaml: (Field with a XamComboBoxEditor)
<igDP:UnboundField Name="PredecessorTaskRelation" Label="Desc. Predecessor"> <igDP:UnboundField.Settings> <igDP:FieldSettings EditorType="{x:Type igEdit:XamComboEditor}"> <igDP:FieldSettings.EditorStyle> <Style TargetType="{x:Type igEdit:XamComboEditor}"> <Setter Property="ItemsSource" Value="{Binding ElementName=DataGrid1 Path=DataSource}"/> <Setter Property="SelectedItem" Value="{Binding DataItem.TaskRelation,Mode=TwoWay}"/> <Setter Property="ComboBoxStyle"> <Setter.Value> <Style TargetType="{x:Type ComboBox}"> <Setter Property="ItemTemplate"> <Setter.Value> <DataTemplate> <DockPanel> <TextBlock Text="{Binding IndexString}"/> <Label Content=" - " /> <TextBlock Text="{Binding Content}"/> </DockPanel> </DataTemplate> </Setter.Value> </Setter> </Style> </Setter.Value> </Setter> </Style> </igDP:FieldSettings.EditorStyle> </igDP:FieldSettings> </igDP:UnboundField.Settings></igDP:UnboundField>
The DataSource not fill this way. Someone can help me, please?
Thank you!