System.Windows.Forms.DataGridViewElementStates Enumeration

Specifies the user interface (UI) state of a element within a System.Windows.Forms.DataGridView control.

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
[System.Flags]
public enum DataGridViewElementStates

Remarks

Although these different states, like DataGridViewElementStates.Frozen, are enforced by the UI, they can be programmatically overruled.

Members

Member NameDescription
Displayed

Indicates the an element is currently displayed onscreen.

Frozen

Indicates that an element cannot be scrolled through the UI.

None

Indicates that an element is in its default state.

ReadOnly

Indicates that an element will not accept user input to change its value.

Resizable

Indicates that an element can be resized through the UI. This value is ignored except when combined with the DataGridViewElementStates.ResizableSet value.

ResizableSet

Indicates that an element does not inherit the resizable state of its parent.

Selected

Indicates that an element is in a selected (highlighted) UI state.

Visible

Indicates that an element is visible (displayable).

Requirements

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