System.Windows.Forms.DataGridViewComboBoxDisplayStyle Enumeration

Defines constants that indicate how a System.Windows.Forms.DataGridViewComboBoxCell is displayed.

Syntax

public enum DataGridViewComboBoxDisplayStyle

Remarks

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

Members

Member NameDescription
ComboBox

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

DropDownButton

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

Nothing

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

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0