Skip to main content
A newer version of this page is available. .

GridControlViewCollection Class

Represents a collection that contains Views currently displayed by a grid control.

Namespace: DevExpress.XtraGrid

Assembly: DevExpress.XtraGrid.v19.1.dll

Declaration

public class GridControlViewCollection :
    ReadOnlyCollectionBase,
    IEnumerable<BaseView>,
    IEnumerable

The following members return GridControlViewCollection objects:

Remarks

The GridControlViewCollection class represents a read-only collection used to store all Views which are currently displayed by a grid control. This collection can be accessed via the control’s GridControl.Views property. The first element in the collection always refers to the View object specified by the GridControl.MainView property. This object represents the View displayed at the top hierarchy level. Other Views in the collection represent the detail clones currently opened.

The GridControlViewCollection class allows you to access individual elements and determine whether the collection contains a particular element. View objects are automatically added to the collection when detail clones are opened. When a master row is collapsed, all corresponding detail clones are destroyed. The corresponding collection elements are removed as the result.

Inheritance

Object
ReadOnlyCollectionBase
GridControlViewCollection
See Also