DataGridViewComboBoxDisplayStyle 枚举

定义

定义指示 DataGridViewComboBoxCell 显示方式的常数。Defines constants that indicate how a DataGridViewComboBoxCell is displayed.

public enum class DataGridViewComboBoxDisplayStyle
public enum DataGridViewComboBoxDisplayStyle
type DataGridViewComboBoxDisplayStyle = 
Public Enum DataGridViewComboBoxDisplayStyle
继承
DataGridViewComboBoxDisplayStyle

字段

ComboBox 0

在非编辑模式下,DataGridViewComboBoxCell 模拟 ComboBox 控件的外观。When it is not in edit mode, the DataGridViewComboBoxCell mimics the appearance of a ComboBox control.

DropDownButton 1

在非编辑模式下,显示带有下拉按钮的 DataGridViewComboBoxCell,但不再模拟 ComboBox 控件的外观。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 2

在非编辑模式下,显示不带下拉按钮的 DataGridViewComboBoxCellWhen it is not in edit mode, the DataGridViewComboBoxCell is displayed without a drop-down button.

注解

此枚举由DisplayStyle DataGridViewComboBoxCellDataGridViewComboBoxColumn类型的属性用来指示单元格在处于编辑模式时的外观。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. 在编辑模式下, 单元显示承载ComboBox的控件。In edit mode, the cell displays the hosted ComboBox control.

适用于

另请参阅