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

GridControl.View Property

Gets or sets the grid’s view. This is a dependency property.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v18.2.dll

Declaration

public DataViewBase View { get; set; }

Property Value

Type Description
DataViewBase

A DataViewBase descendant that specifies the grid view used to display data.

Remarks

A DXGrid control does not actually display data itself. It uses a View to display data from the bound data source. A View specifies how records and record fields are arranged.

By default, when the grid is created, it initializes the View property with a TableView object. To display data using a Card View, you should create a corresponding View object and assign it to the View property. To display hierarchical data in a tree, use the TreeListView.

To learn more, see Views.

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

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