I have a data grid which has RowDetails.Template. In that i have another grid which will have the combo box that will bind data from a service. But that combo box is not binded and it is not populating. Please find the sample code below and help me out.
xaml:
===========
xaml.cs
===========
private void cmb1Loaded(object sender, RoutedEventArgs e)
{
ComboBox ComboBox1 = new ComboBox();
ComboBox1.ItemsSource = objStage;
}
private void dgSilverligh_Inner_LoadingRow(object sender, DataGridRowEventArgs e)
{
DataGrid dg = (DataGrid)sender;
ComboBox cmb1 = dg.Columns[0].GetCellContent(e.Row) as ComboBox;
cmb1.ItemsSource = objStage;
cmb1.SelectedIndex = 0;
}
Thanks,
Vijay
Replies
Know the answer? Post it — somebody with the same question will find it here.