Skip to content

FindRecordItemByRows Method

Description

Searches the grid rows for the specified string.

Syntax

Public Function FindRecordItemByRows( _
    ByVal [StartIndex](#) As Long, _
    ByVal [EndIndex](#) As Long, _
    ByVal [StartColumn](#) As Long, _
    ByVal [EndColumn](#) As Long, _
    ByVal [Record](#) As Long, _
    ByVal [Item](#) As Long, _
    ByVal [Text](#) As String, _
    ByVal [Flags](#) As [XTPGridTextSearchParms](XtremeGridControl~Enumerations~XTPGridTextSearchParms_EN.md) _
) As [GridRecordItem](XtremeGridControl~GridRecordItem.md)

Parameters

  • StartIndex: Index of Row to start searching from.
  • EndIndex: Index of last row to search.
  • StartColumn: Index of Column to start searching from.
  • EndColumn: Index of last column to search.
  • Record: Index of Record to start searching from.
  • Item: Index of Item to start searching from.
  • Text: Search string.
  • Flags: Search option flags.

Search Option Flags

Flag Value Description
xtpGridTextSearchExactPhrase Search exact phrase.
xtpGridTextSearchMatchCase Match case during search.
xtpGridTextSearchBackward Search backwards.
xtpGridTextSearchExactStart Search phrase where the start of the phrase matches exactly. For those familiar with grep, this is just like using the "^" to state that the text must start with the specified search.

Return Type

If a match is found, a reference to the GridRecordItem that contains the search string. If no match is found, returns null.

Remarks

Allows specific rows and columns to be searched. This can be used in a "Find Next" search by starting a new search starting from the last successful search.

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.