A newer version of this page is available. Switch to the current version.

GridView.State Property

Gets the View's current state.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v19.2.dll


public virtual GridState State { get; }
Public Overridable ReadOnly Property State As GridState

Property Value

Type Description

A GridState enumeration member indicating the View's current state


Use this property to determine which action is being performed by the end-user. Refer to the GridState enumeration description for a list of all available states.

An example of using the State property can include suspension of a given operation until the end-user completes an action against the grid control. For instance, you may need to display a notification message and suspend it if the user is performing a dragging operation at a given moment in time.


Detail pattern Views do not contain data and they are never displayed within XtraGrid. So, the State member must not be invoked for these Views. The State member can only be used with real Views that are displayed within the Grid Control. The real Views with which an end-user interacts at runtime can be accessed using the following methods.

See Also