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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

combo box datasource values not refreshed.

Thread ID:





23929 Jan 25,2005 10:43 AM UTC Jan 25,2005 11:01 AM UTC WinForms 1
Tags: GridControl
Vijay Kumar David
Asked On January 25, 2005 10:43 AM UTC

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.

Administrator [Syncfusion]
Replied On 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.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon