VGridControlBase.CreateRow(Int32) Method
In This Article
Returns a newly created BaseRow descendant (the EditorRow, MultiEditorRow or CategoryRow object depending on the passed parameter).
Namespace: DevExpress.XtraVerticalGrid
Assembly: DevExpress.XtraVerticalGrid.v24.2.dll
NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.VerticalGrid
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
row |
Int32 | An integer value that specifies which Base |
#Returns
Type | Description |
---|---|
Base |
A Base |
#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