Skip to main content

GridControlViewCollection Class

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

Namespace: DevExpress.XtraGrid

Assembly: DevExpress.XtraGrid.v24.1.dll

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation

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