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

VGridControlBase.CreateRow(Int32) Method

Returns a newly created BaseRow descendant (the EditorRow, MultiEditorRow or CategoryRow object depending on the passed parameter).

Namespace: DevExpress.XtraVerticalGrid

Assembly: DevExpress.XtraVerticalGrid.v19.1.dll

Declaration

public virtual BaseRow CreateRow(
    int rowTypeId
)

Parameters

Name Type Description
rowTypeId Int32

An integer value that specifies which BaseRow descendant should be created.

Returns

Type Description
BaseRow

A BaseRow descendant.

Remarks

The CreateRow method creates a BaseRow descendant. The rowTypeId parameter specifies which BaseRow descendant should be created according to the following correlation:

In all other cases, the CreateRow method throws the InvalidCastException.

See Also