Skip to main content

LayoutView(GridControl) Constructor

Creates a new LayoutView object with the specified owner control.

Namespace: DevExpress.XtraGrid.Views.Layout

Assembly: DevExpress.XtraGrid.v24.1.dll

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation


public LayoutView(
    GridControl ownerGrid


Name Type Description
ownerGrid GridControl

A GridControl object that will own the new View. This value is assigned to the BaseView.GridControl property.


You can use the created View in a number of ways. For instance, assign it to the grid’s GridControl.MainView property, add it to the GridControl.LevelTree tree, or use it within the master-detail events provided by the XtraGrid.

Before using a View within the Grid Control ensure that its BaseView.GridControl property has been initialized. For Views created at design time this property is initialized automatically. If a View is assigned to the GridControl.MainView property, its BaseView.GridControl property is also initialized automatically. In all other cases the BaseView.GridControl property should be set manually.

See Also