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

GridView Class

Displays data in a tabular form.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v18.2.dll

Declaration

public class GridView :
    ColumnView,
    IGridDesignTime,
    IDataControllerRelationSupport,
    IEditFormOwner,
    IDataControllerValidationSupport,
    IAccessibleGrid,
    IGridLookUp,
    ISummaryItemsOwner,
    IXtraSupportDeserializeCollection,
    IScrollBarAnnotationsOwner<ScrollAnnotationKind>,
    IScrollBarOwner,
    IExternalRowsProvider,
    IDataControllerDetailClient,
    IAccessibleFooterPanelOwner,
    ISupportAsyncScrollAnimation

The following members return GridView objects:

Library Related API Members
WinForms Controls GridHitInfo.View
GroupSummarySortInfoCollection.View
RepositoryItemGridLookUpEditBase.View
eXpressApp Framework GridListEditor.GridView

Remarks

Grid View displays data source data as a table. Columns represent dataset fields and ordinal rows represent dataset records. Grid Views can group, sort and filter its data, show total summaries, group summaries and preview sections. Most of these data representation features can be applied by end-users at runtime. For this purpose, Grid Views provide specially designed context menus.

You can also use this View to implement master-detail data presentation. Note that this type of data representation is only possible if the master data is displayed by a GridView (or its descendant).

If you need to create bands to group columns logically and to allow operations on groups of columns, use the BandedGridView View. If you need to arrange column headers and corresponding data cells into multiple rows, use the AdvBandedGridView View. Note that these Views are GridView descendants and inherit all data representation features.

Refer to the Columns topic for additional information.

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

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