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

Declaration

[Browsable(false)]
public virtual GridState State { get; }
<Browsable(False)>
Public Overridable ReadOnly Property State As GridState

Property Value

Type Description
GridState

A GridState enumeration member indicating the View's current state

Remarks

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.

NOTE

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