Welcome to the Xceed Community Sign in | Join | Help
Community Search  

Re: How to bind a DataTable to a ComboBox in WPF DataGrid?

  •  05-12-2008, 4:37 AM

    Re: How to bind a DataTable to a ComboBox in WPF DataGrid?

    Hey Jenny,

    I tried with the post you mentioned. But it is not working. The ComboBox is show empty still. I changed my CellEditor resource as,

     
            <xceed:CellEditor x:Key="SourceFieldEditStyle">
                <xceed:CellEditor.EditTemplate>
                    <DataTemplate>
                        <StackPanel Orientation="Horizontal" HorizontalAlignment="Stretch" AllowDrop="True">
                            <ComboBox ItemsSource="{Binding dataMapFields}" SelectedValue="{xceed:CellEditorBinding}"  DisplayMemberPath="field_name" SelectedValuePath="field_name" HorizontalAlignment="Stretch"/>
                    </StackPanel>
                    </DataTemplate>
                </xceed:CellEditor.EditTemplate>
            </xceed:CellEditor>

    Thanks


    Venkatesh Mookkan
View Complete Thread
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.