DataGridViewComboBoxDisplayStyle DataGridViewComboBoxDisplayStyle DataGridViewComboBoxDisplayStyle DataGridViewComboBoxDisplayStyle Enum

定义

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

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

字段

ComboBox ComboBox ComboBox ComboBox 0

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

DropDownButton DropDownButton DropDownButton 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 Nothing Nothing 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.

适用于

另请参阅