Welcome to the Xceed Community | Help
Community Search  
More Search Options

CellEditorBinding

Sort Posts: Previous Next
  •  09-19-2008, 12:11 AM Post no. 15427

    CellEditorBinding

    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)?
  •  09-19-2008, 8:07 AM Post no. 15438 in reply to 15427

    Re: CellEditorBinding

    You should use the "URL"-type namespace mapping instead of the Namespace-Assembly... The URL will aggregate all usefull namespaces...

    See details here:
    http://doc.xceedsoft.com/products/XceedWpfDataGrid/Creating_your_first_DataGrid_Project.html


    Marc Laroche
    Software Developer
    Xceed Software Inc.


    I don’t suffer from insanity, I enjoy every minute of it. - Unknown
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2011 Xceed Software Inc.