Skip to main content
A newer version of this page is available. .

LayoutView() Constructor

Initializes a new instance of the LayoutView class with default settings.

Namespace: DevExpress.XtraGrid.Views.Layout

Assembly: DevExpress.XtraGrid.v19.2.dll

Declaration

public LayoutView()

Remarks

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 XtraGrid, 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.

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

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