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.v17.2.dll

Declaration

public class GridView :
    ColumnView,
    IGridDesignTime,
    IDataControllerRelationSupport,
    IEditFormOwner,
    IDataControllerValidationSupport,
    IAccessibleGrid,
    IGridLookUp,
    ISummaryItemsOwner,
    IXtraSupportDeserializeCollection,
    IExternalRowsProvider,
    IDataControllerDetailClient,
    IAccessibleFooterPanelOwner,
    ISupportAsyncScrollAnimation

The following members accept/return GridView objects:

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

Remarks

This class provides a two-dimensional representation of data from your data source in grid format. Columns represent dataset fields and ordinal rows represent dataset records. In addition to representing data in column and row format, Grid Views support data grouping, sorting, filtering, and allow the display of 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.

Please 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