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

combo box datasource values not refreshed.

Thread ID:

Created:

Updated:

Platform:

Replies:

23929 Jan 25,2005 05:43 AM Jan 25,2005 06:01 AM Windows Forms 1
loading
Tags: GridControl
Vijay Kumar David
Asked On January 25, 2005 05:43 AM

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 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. http://64.78.18.34/Support/article.aspx?id=560 http://64.78.18.34/Support/article.aspx?id=10351 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. http://64.78.18.34/Support/article.aspx?id=567

CONFIRMATION

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.

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.

;