DataGridViewComboBoxDisplayStyle Enumeration
TOC
Collapse the table of content
Expand the table of content

DataGridViewComboBoxDisplayStyle Enumeration

 

Defines constants that indicate how a DataGridViewComboBoxCell is displayed.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public enum DataGridViewComboBoxDisplayStyle

Member nameDescription
ComboBox

When it is not in edit mode, the DataGridViewComboBoxCell mimics the appearance of a ComboBox control.

DropDownButton

When it is not in edit mode, the DataGridViewComboBoxCell is displayed with a drop-down button but does not otherwise mimic the appearance of a ComboBox control.

Nothing

When it is not in edit mode, the DataGridViewComboBoxCell is displayed without a drop-down button.

This enumeration is used by the DisplayStyle property of the DataGridViewComboBoxCell and DataGridViewComboBoxColumn types to indicate the appearance of the cell when it is not in edit mode. In edit mode, the cell displays the hosted ComboBox control.

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft