Hi!
Help me please.
I'm loading my table DataGridControl dynamically from file. Like this:
<Grid xmlns:xcdg="clr-namespace:Xceed.Wpf.DataGrid;assembly=Xceed.Wpf.DataGrid" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<xcdg:DataGridControl Name="dataGridControl1" Margin="5" ValidationMode="CellEndingEdit" AutoCreateColumns="True">
</xcdg:DataGridControl.Columns>
<xcdg:Column Title="Full Name" VisiblePosition="2" MaxWidth="100" Visible="False" FieldName="Name" />
<xcdg:Column Title="Age" VisiblePosition="3" MaxWidth="100" Visible="False" FieldName="Age">
<xcdg:Column.CellEditor>
<xcdg:CellEditor>
<xcdg:CellEditor.EditTemplate>
<DataTemplate>
<ComboBox BorderThickness="0" SelectedValue="{xcdg:CellEditorBinding}" Name="cmbbx1">
<ComboBox.Items>
<ComboBoxItem Content="13-17"></ComboBoxItem>
<ComboBoxItem Content="18-22"></ComboBoxItem>
<ComboBoxItem Content="23-29"></ComboBoxItem>
<ComboBoxItem Content="30-..."></ComboBoxItem>
</ComboBox.Items>
</ComboBox>
</DataTemplate>
</xcdg:CellEditor.EditTemplate>
</xcdg:CellEditor>
</xcdg:Column.CellEditor>
</xcdg:Column>
<xcdg:Column ..../>
</xcdg:DataGridControl.Columns>
</xcdg:DataGridControl>
</Grid>
There is an "XamlParseException occured" during xaml loading: "The tag 'CellEditorBinding' does not exist in XML namespace 'clr-namespace:Xceed.Wpf.DataGrid;assembly=Xceed.Wpf.DataGrid'. Line '12' Position '47'."
WPF loads DataGridControl dynamically without "SelectedValue" attribute very well. Is it possible set this attribute dynamically? or, Is there any other way to bind selected value Combobox to Cell(.Editor)?