Skip to main content

GridControl.View Property

Gets or sets the grid's View. This is a dependency property.

Namespace: DevExpress.Xpf.Grid

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

#Declaration

[CloneDetailMode(CloneDetailMode.Skip)]
[GridStoreAlwaysProperty]
[XtraSerializableProperty(XtraSerializationVisibility.Content)]
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 hierarchical data in a tree, use the TreeListView.

To learn more, see Views Overview.

See Also