none
DataGridViewComboBoxView back color changes RRS feed

  • Question

  • Working on a Windows Forms project that uses DataGridView. In the first column, I have a DataGridViewComboBoxCell that displays a list of business objects. The user selects the first first row everything looks good

    Correct display

    After the first row is selected, subsequent rows including the selected row background color changes to black

    I have tried changing during formatting event and still cannot get the drop down to display correct color after the first row

    Any suggestions/ ideas?

    Sunday, November 25, 2012 5:38 AM

Answers

  • Never encounter this issue before, but someone said this is a bug. Try their workarounds.

    http://nickstips.wordpress.com/2010/12/20/c-datagridviewcomboboxcolumn-drop-down-menu-appears-all-black/

    http://social.msdn.microsoft.com/forums/en-US/vbgeneral/thread/37afa99a-ac00-4f04-8c2b-f6b67ecc8455

    • Proposed as answer by Bob Wu-MTModerator Wednesday, November 28, 2012 7:51 AM
    • Marked as answer by G33kKahuna Thursday, November 29, 2012 2:39 AM
    Tuesday, November 27, 2012 10:41 AM