My datagrid is bound to a datacontext and I have a combobox inside a template column which has to be bound to a data source out of the existing datacontext. I couldnt access that combobox from code behind. How can I achieve this.
Also may i have a good learning resources for styling datagrid. Thanks :)
EDIT: I have two datatables in a dataset and my need is to intermix the data from both. Initially i set the data context to dataset.table1. Now I wanted to get values from other. So I tried the code-behind and found that I cant access elements in the datatemplate.
EDIT 2: I tried something like this:
From code-behind: set Me.DataContext=mydataset
And in XAML: when I wanted the values from 1st datatable: set the binding to table1/field. But I could see oly the first row of the datatable.
View Complete Post