Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.dll

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

#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