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.v22.2.dll

NuGet Package: DevExpress.Win.Grid


public virtual BaseView SourceView { get; }

Property Value

Type Description

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


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