I have a DataGridView
where one of the columns is a DataGridViewComboBoxColumn
. When the grid is populated, that column looks different because of the drop-down arrow appearing on each cell in the column. I'd like to change this so that the drop-down arrow is hidden and only shows up when the row is actually highlighted or when the combobox cell is selected for editing. The behavior I wanted is like how the Properties window in Visual Studio handles its values.
views:
546answers:
3
+2
A:
In the DataGridViewComboBoxColumn
, there is a property called DisplayStyle
. Set it to Nothing
to hide the DropDownButton
Further information about the DataGridViewComboBoxDisplayStyle
enumeration is available at this MSDN link
Joe
2009-07-10 00:34:58
Perfect! Just what I was looking for.
dawntrader
2009-07-10 22:40:38
In that case, it might be a good idea to mark it as the accepted answer
Joe
2009-07-11 06:20:15
A:
Thank you so much Joe Schmoe. I am trying to figure out this a long time ago.
Jay
2010-01-17 11:30:45