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

VGridControl.LocateByDisplayText(Int32, EditorRow, String) Method

Returns the handle of the record that displays the specified text in the specified row.

Namespace: DevExpress.XtraVerticalGrid

Assembly: DevExpress.XtraVerticalGrid.v24.2.dll

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

#Declaration

public int LocateByDisplayText(
    int startRecord,
    EditorRow row,
    string text
)

#Parameters

Name Type Description
startRecord Int32

An integer value that specifies the row handle from which to start searching.

row EditorRow

An EditorRow object that specifies the row in which to search for the specified value.

text String

A string value that specifies the text to find.

#Returns

Type Description
Int32

An integer value that specifies the handle of the record that contains the specified text in the specified row. The DevExpress.Data.DataController.InvalidRow field value is returned, if no record is found that matches the specified conditions.

#Remarks

The code below focuses the record that contains “Rolls-Royce“ in the rowTrademark row.

vGridControl1.FocusedRecord = vGridControl1.LocateByDisplayText(0, rowTrademark, "Rolls-Royce");
See Also