DataGridViewComboBoxCell inactive item painting

Posted by Tired on Stack Overflow See other posts from Stack Overflow or by Tired
Published on 2009-02-20T01:54:12Z Indexed on 2010/04/03 10:03 UTC
Read the original article Hit count: 286

Filed under:
|
|

Hi All,

We're trying to alter the DataGridViewComboBoxCell so that when the user expands the dropdown menu, inactive items are displayed in grey text.

I've found out how to do this by creating a new object, which inherits from DataGridViewComboBoxEditingControl.

The problem with this, is that I'm not sure how to tell the comboBoxCell, or column, to use this EditingControl, when the user clicks on the cell.

Any ideas?

© Stack Overflow or respective owner

Related posts about .NET

Related posts about datagridview