BaseView.ParentView Property

Gets or sets a master View for the current View.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v20.1.dll

Declaration

[Browsable(false)]
public BaseView ParentView { get; set; }
<Browsable(False)>
Public Property ParentView As BaseView

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.

See Also