Back to Devexpress

GridControlViewCollection Class

windowsforms-devexpress-dot-xtragrid-f10a957c.md

latest2.6 KB
Original Source

GridControlViewCollection Class

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

Namespace : DevExpress.XtraGrid

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
public class GridControlViewCollection :
    ReadOnlyCollectionBase,
    IEnumerable<BaseView>,
    IEnumerable
vb
Public Class GridControlViewCollection
    Inherits ReadOnlyCollectionBase
    Implements IEnumerable(Of 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

GridControlViewCollection Members

Views

DevExpress.XtraGrid Namespace