Hi Telerik,
I have written new GridView control. And I'm adding new columns to that control programmatically on some button click.
I've exposed dependancy property from which I'm taking the ItemsSource for newly added GridViewComboBoxColumn.
So that ItemsSource almost has nothing common with Grid's DataContext.
And I'm trying to set that ItemsSource:
GridViewComboBoxColumn column = new GridViewComboBoxColumn ();
column.ItemsSource = MyItemsSource;
column.DataMemberBinding = new Binding(PreviousColumnDataMemberBinding.Path.Path);
After that I'm adding that column to my GridView Columns.
And after running the program I notice that the given ItemsSource ignored and instead used previous GridView.ItemsSource.
So my question is how can I force to use my newly given ItemsSource for each newly added column.
Also I've already looked on different tutorials, threads but that doesn't help me.
Thanks in advance.
Kind Regards,
Tigran
I have written new GridView control. And I'm adding new columns to that control programmatically on some button click.
I've exposed dependancy property from which I'm taking the ItemsSource for newly added GridViewComboBoxColumn.
So that ItemsSource almost has nothing common with Grid's DataContext.
And I'm trying to set that ItemsSource:
GridViewComboBoxColumn column = new GridViewComboBoxColumn ();
column.ItemsSource = MyItemsSource;
column.DataMemberBinding = new Binding(PreviousColumnDataMemberBinding.Path.Path);
After that I'm adding that column to my GridView Columns.
And after running the program I notice that the given ItemsSource ignored and instead used previous GridView.ItemsSource.
So my question is how can I force to use my newly given ItemsSource for each newly added column.
Also I've already looked on different tutorials, threads but that doesn't help me.
Thanks in advance.
Kind Regards,
Tigran