A newer version of this page is available. Switch to the current version.

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
Public Class GridView
    Inherits ColumnView
    Implements IGridDesignTime,
               IDataControllerRelationSupport,
               IEditFormOwner,
               IDataControllerValidationSupport,
               IAccessibleGrid,
               IGridLookUp,
               ISummaryItemsOwner,
               IXtraSupportDeserializeCollection,
               IScrollBarAnnotationsOwner(Of ScrollAnnotationKind),
               IScrollBarOwner,
               IExternalRowsProvider,
               IDataControllerDetailClient,
               IAccessibleFooterPanelOwner,
               ISupportAsyncScrollAnimation

Related API Members

The following members accept/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.

See Also