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

GridDataBoundGrid and ComboBoxes

Thread ID:





14247 May 23,2004 02:58 AM UTC May 23,2004 07:56 AM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On May 23, 2004 02:58 AM UTC

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 07:56 AM UTC

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.


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