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.

GridDataBoundGrid and ComboBoxes

Thread ID:

Created:

Updated:

Platform:

Replies:

14247 May 22,2004 10:58 PM May 23,2004 03:56 AM Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On May 22, 2004 10:58 PM

I have a GridDataBoundGrid and two ComboBox celltypes. The first ComboBox is used to filter down the view of the second ComboBox. I need to find a way to: 1) Set the datasource of the second ComboBox filtered by the selection in the first ComboBox. 2) The second ComboBox should remain disabled until the first ComboBox has a value selected, and then become enabled and filtered based on the first ComboBox selection. 3) If the record already exists, the second ComboBox should be enabled by default, and filtered on the value already set in the first ComboBox. Thanks in advance for any help!

Administrator [Syncfusion]
Replied On May 23, 2004 03:56 AM

Take a look at this KB. I think it will get you through 1 & 3. http://www.syncfusion.com/Support/article.aspx?id=567 For 2, try handling Model.QueryCellInfo. If e.RowIndex > 0 and e.ColIndex points to your second combobox column, then test the value of grid[e.RowIndex, firstComboBoxColumn].Text, and if it is empty, set e.Style.Enabled = false.

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.

;