Export (0) Print
Expand All
Expand Minimize

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
ComboBoxWhen it is not in edit mode, the DataGridViewComboBoxCell mimics the appearance of a ComboBox control.
DropDownButtonWhen 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.
NothingWhen 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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft