We have a DataGrid. I have bound a combo box column with dataGrid.SetGridComboBox method.
Then Dynamically based on user selection of another combo box column I have to load the datasource of the original combo box.
Here is what I have written:
dataGrid[2, 2].CellType = "ComboBox";
dataGrid[2, 2].DataSource = null;
dataGrid[2, 2].DataSource =
dataGrid[2, 2].DisplayMember = "Name";
dataGrid[2, 2].ValueMember = "EntityTypeID";
The code compiles well without bugs. But the new datasource is not shown in the combo at 2,2.
Thanks and have a nice day :)
Help would be greatly appreciated
ADAdministrator Syncfusion Team January 25, 2005 06:01 AM
If dataGrid is a GridDataBoundGrid, then you cannot set style properties on a cell by cell basis.
See these KB articles on this.
If you want to dynamically provide the dropdown list for a particular cell, then one way to do this is to use the CurrentCellShowingDropDown. See this KB.