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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Making specific rows in a MultiColumnComboBox unselectable

Thread ID:





56785 Feb 20,2007 11:13 PM UTC Feb 22,2007 07:57 PM UTC WinForms 2
Tags: GridControl
Administrator [Syncfusion]
Asked On February 20, 2007 11:13 PM UTC


I'm trying to accomplish the following:

Using a MultiColumnComboBox, I'd like to make some of the rows in the GridListControl unselectable. Meaning, based on some criteria (either a column value or a computed value), the user would not be able to click on those rows in the GridListControl and close the combobox. Those rows should be visually identifiable as being unselectable (similar to Enabled = false) and clicking on them should do nothing. Only selecting a "valid" row (or pressing the Esc key) should close the combobox.

Is this possible? If so, how might I go about implementing this?



Administrator [Syncfusion]
Replied On February 21, 2007 06:42 PM UTC

Here is a try at this using the wrapped GridControl.QueryCellInfo that is part of GridListControl. In that event, you can color particular cells. The second piece of teh sample is to listen to an event and prevent the combobox from losing when you click on one of the particular rows that you want disabled. Here is teh multicolumncombobox sample modified to show this process. http://www.syncfusion.com/Support/user/uploads/CS_2f2a5206.zip

Administrator [Syncfusion]
Replied On February 22, 2007 07:57 PM UTC


Thanks for the sample. I've messed with it a bit and it looks like I get get what I need using a similar approach.




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