i use xceed datagrid for project.
i want to insert dynamic data to combobox.
but i don't find dynamic data sample in xceed . only fixed data sample(below...)
help me....-.-;;;
Xaml >......................................................................My Code
<xcdg:CellEditor x:Key="UnitTypeEditor">
<xcdg:CellEditor.EditTemplate>
<DataTemplate>
<ComboBox
ItemsSource="{Binding Path=DataTypes}" <== -DataTypes: ObservableCollection<string>, don't show data in DataTypes Collection
BorderThickness="0"
MinHeight="22"
VerticalContentAlignment="Top"
FocusVisualStyle="{x:Null}"
>
</ComboBox>
</DataTemplate>
......
xaml>.......................................................fixed comboxbox data
<xcdg:CellEditor x:Key="dataTypeEditorEcv">
<xcdg:CellEditor.EditTemplate>
<DataTemplate>
<ComboBox BorderThickness="0"
MinHeight="22"
VerticalContentAlignment="Top"
SelectedValue="{xcdg:CellEditorBinding}"
FocusVisualStyle="{x:Null}">
<ComboBox.Resources>
<Style TargetType="Popup">
<Setter Property="TextElement.Foreground"
Value="{DynamicResource {x:Static SystemColors.WindowTextBrushKey}}" />
</Style>
</ComboBox.Resources>
<system:String>A</system:String>
<system:String>BIN</system:String>
<system:String>BOOL</system:String>
</ComboBox>
</DataTemplate>
</xcdg:CellEditor.EditTemplate>