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

BaseRow Class

Serves as the base class for rows of different types.

Namespace: DevExpress.XtraVerticalGrid.Rows

Assembly: DevExpress.XtraVerticalGrid.v19.1.dll

Declaration

public abstract class BaseRow :
    Component,
    IXtraSerializable,
    IRowChangeListener,
    IRowViewScaler,
    IServiceProvider,
    IAppearanceOwner,
    IXtraSerializableLayoutEx

Remarks

The BaseRow class is the base class for all row types in the VGridControlBase descendants. This class is abstract and thus cannot be used directly. It implements the basic row functionality and defines properties and methods common to all row types. These common settings are row options (BaseRow.OptionsRow), height (BaseRow.Height), expanded state (BaseRow.Expanded), style (BaseRow.Appearance, BaseRow.StyleName), visibility state (BaseRow.Visible, BaseRow.VisibleIndex) and etc.

Controls derived from the VGridControlBase class have specific methods and properties that either return row objects or accept them as parameters. Such members operating on rows use the BaseRow class as the return or parameter type. This allows you to handle rows of all types using the same property or method. Note that you may need to perform typecasts of such return values to use the functionality specific to each row type. The row type expressed numerically is specified by the BaseRow.XtraRowTypeID property.

BaseRow descendants store only common row settings. Settings specific to each row type are stored in separate objects referred to as row item settings. These settings depend on data displayed by rows and can be accessed via a specially designed BaseRow.Properties property or the BaseRow.GetRowProperties method.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the BaseRow 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