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.GetRowByCaption(String) Method

Returns the BaseRow with the specified RowProperties.Caption property value.

Namespace: DevExpress.XtraVerticalGrid

Assembly: DevExpress.XtraVerticalGrid.v24.2.dll

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

#Declaration

public BaseRow GetRowByCaption(
    string caption
)

#Parameters

Name Type Description
caption String

The string value specifying the caption of the row to return.

#Returns

Type Description
BaseRow

The BaseRow descendant with the specified RowProperties.Caption property value. null (Nothing in Visual Basic) if no row is found.

#Remarks

The GetRowByCaption method returns the first item with the specified RowProperties.Caption property value found in the VGridControlBase.Rows collection. This method returns null (Nothing in Visual Basic) if no row is found.

See Also