We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

combo box datasource values not refreshed.

Hi, 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 = dsEntityClassType.Tables[0]; 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 David.

1 Reply

AD Administrator Syncfusion Team January 25, 2005 11:01 AM UTC

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.

Live Chat Icon For mobile
Up arrow icon