WPF DatagridColumn binding

Mar 23, 2009 at 12:43 PM
Hi,

Can Any1 provide code for WPF ComboBox databinding .Actually Im Binding my datagrid with one itemsource says I1 where I1 is observablecollection<t>.Now I want to bind comboboxcolumn with different set of itemsource .can any1 provide me solution 

<my:DataGridComboBoxColumn.EditingElementStyle>

<Style TargetType="{x:Type ComboBox}">

<Setter Property="ItemsSource" Value="{Binding Path=T1}" />

<Setter Property="IsEditable" Value="True" />

<Setter Property="StaysOpenOnEdit" Value="True" />

</Style>

</my:DataGridComboBoxColumn.EditingElementStyle>

<my:DataGridComboBoxColumn.ElementStyle>

<Style TargetType="{x:Type ComboBox}">

<Setter Property="ItemsSource" Value="{Binding Path=T1}" />

</Style>

</my:DataGridComboBoxColumn.ElementStyle>

Here T1 is obsrvablecollection .

With regards,
nannu

Mar 23, 2009 at 12:44 PM
How abt using ObjectDataProvider key in our combo box