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

BaseView.ParentView Property

Gets or sets a master View for the current View.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v19.2.dll


public BaseView ParentView { get; set; }

Property Value

Type Description

A BaseView descendant representing a parent View.


Use the ParentView property to obtain a master View for the current View. For GridControl.MainView and pattern Views, the property returns null (Nothing in Visual Basic). For a detail opened at runtime, the property returns the View whose master row was expanded to open the detail. For instance, for detail clones displayed at the second level, the ParentView property returns the GridControl.MainView object. For detail clones at the third level, the property returns the clone at the second level whose master row was expanded to make this detail visible.

See Also