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
#Parameters
Name | Type | Description |
---|---|---|
start |
Int32 | An integer value that specifies the row handle from which to start searching. |
row | Editor |
An Editor |
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. |
#Remarks
The code below focuses the record that contains “Rolls-Royce“ in the rowTrademark row.
vGridControl1.FocusedRecord = vGridControl1.LocateByDisplayText(0, rowTrademark, "Rolls-Royce");