Hi,
I have a radgridview control which has a binding of a data set (A), In a specific scenario couple of columns in A which has a value in it should show in a combo box control which actually have a set of different possible values in it. I have separate data sets(B & C) bound for those combo box columns. However the current value of the column from A should automatically select in the appropriate value of combo boxes of ( B & C) when I load the data. How can I achieve this. Below is the sample code I have.
dgvLocations.DataSource = _LocationBo.Do.Table.DefaultView; // Main datagridview control data source - A
GridViewComboBoxColumn configColumn = new GridViewComboBoxColumn();
dgvLocations.MasterTemplate.Columns.Add(configColumn);
configColumn.HeaderText = "Configuration";
configColumn.DataSource = _LocationConfigCdBo.Do.Table.DefaultView;
configColumn.FieldName = LocationDo.V_ConfigurationColumn; // Column name mapping from the A dataset
configColumn.ValueMember = LocationConfigCdDo.TypeCdColumn; // Column name mapping from the B dataset
configColumn.DisplayMember = LocationConfigCdDo.DescColumn;
configColumn.Name = LocationDo.V_ConfigurationColumn;
The combo box was successfully loading the values from the dataset B, however it is not showing the selected value from the A. Please advice.
-Chandra.