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.v26.1.dll
Declaration
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:
- 0 — the CategoryRow object,
- 1 — the EditorRow object,
- 2 — the MultiEditorRow object.
In all other cases, the CreateRow method throws the InvalidCastException.
See Also