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

BaseView Class

Serves as the base for objects representing Views in a grid control.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v17.2.dll

Declaration

public abstract class BaseView :
    Component,
    ISupportInitialize,
    IXtraSerializable,
    IXtraSerializableLayout,
    IXtraSerializableLayoutEx,
    ISupportXtraSerializer,
    IServiceProvider,
    IStringImageProvider,
    ISkinProviderEx,
    ISkinProvider,
    IXtraSerializableChildren,
    IOptionsLayoutProvider

Remarks

The grid control displays data by means of views. If the grid doesn’t represent master-detail relationships, it displays a single View specified by the GridControl.MainView property. If the main View’s data source has child relations or you supply detail data manually, the grid control can display Views representing detail data. Thus, a View is an object capable of representing data from a particular recordset (data table, custom record array, etc). The grid control manages Views in terms of positioning them, providing data to be displayed, etc.

The basic View functionality is implemented by the BaseView class. Among others, this class declares members that are used by the grid control to provide View management. These members specify a particular View’s data source, position within the grid control, etc. Additionally, the BaseView class implements functionality used by Views to specify their appearance, to control their details, etc. Note that the BaseView object itself has no visual representation and cannot be used directly within the grid control. You can use this object’s descendants to display data within the grid.

Since the BaseView class is the base for all View objects, it also serves as the type of properties, method and event parameters, etc. Thus, when you obtain a View via an event parameter or a property you will need to perform a typecast to use the actual View’s specific settings.

The image below displays the Views class diagram.

ViewsHierarchy_2

The following code snippets (auto-collected from DevExpress Examples) contain references to the BaseView 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