Skip to main content

BaseView.ParentView Property

Gets or sets a master View for the current View.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v24.2.dll

Declaration

[Browsable(false)]
public BaseView ParentView { get; set; }

Property Value

Type Description
BaseView

A BaseView descendant representing a parent View.

Remarks

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.

The following code snippets (auto-collected from DevExpress Examples) contain references to the ParentView property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also