Skip to main content

BaseView.SourceView Property

Gets the pattern View used to create a clone View.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v24.2.dll

Declaration

[Browsable(false)]
public virtual BaseView SourceView { get; }

Property Value

Type Description
BaseView

A BaseView descendant representing a pattern View containing settings of a clone View.

Remarks

When using the grid control to represent master-detail relationships, you can create Views corresponding to each relation within the bound data source. Such Views are pattern Views and they hold common settings for clones of this View. Clones are dynamically created when expanding master rows. They visually represent detail data. If no pattern View is specified for a particular relation, the closest available parent View is used as a pattern. Please refer to the Master-Detail Relationships topics for details.

The SourceView property can be used to obtain the pattern View holding settings of this clone View. Note that the property returns null (Nothing in Visual Basic) for the GridControl.MainView and pattern Views.

See Also