DataGridViewComboBoxCell::DisplayStyleForCurrentCellOnly Property

 

Gets or sets a value indicating whether the DisplayStyle property value applies to the cell only when it is the current cell in the DataGridView control.

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

public:
property bool DisplayStyleForCurrentCellOnly {
	bool get();
	void set(bool value);
}

Property Value

Type: System::Boolean

true if the display style applies to the cell only when it is the current cell; otherwise false. The default is false.

The DisplayStyle property affects the appearance of the cell when it is not in edit mode, and regardless of whether it is read-only. When the cell is in edit mode, it always looks like a ComboBox control.

.NET Framework
Available since 2.0
Return to top
Show: