Skip to main content

BaseView Class

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

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v24.1.dll

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

public abstract class BaseView :
    Component,
    ISupportInitialize,
    IXtraSerializable,
    ISkinProvider,
    IXtraSerializableLayout2,
    IXtraSerializableLayout,
    IXtraSerializableLayoutEx,
    ISupportXtraSerializer,
    IXtraSupportAllowProperty,
    IServiceProvider,
    IStringSvgImageProvider,
    IStringImageProvider,
    ISkinProviderEx,
    IXtraSerializableChildren,
    IOptionsLayoutProvider,
    ISupportDXSkinColorsEx,
    ISupportDXSkinColors,
    IAccessiblePropertiesProvider

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

See Also