Share this page

# FindRowWithCellTextInColumn Method (IGridBase)

Finds the first row with this text in the specified column. This method has multiple overloads.

In this topic:

## FindRowWithCellTextInColumn(String,UInt32) Method

Finds the first row with this text in the specified column.

C# Syntax

                ITableRow FindRowWithCellTextInColumn(
       string text,
       uint columnNumber
    )

Parameters

text
  Text to find.
columnNumber
  The column number to search.

Return Value

The requested row, or null if none exists.

## FindRowWithCellTextInColumn(String,String) Method

Finds the first row with the specified text in the specified column.

C# Syntax

                ITableRow FindRowWithCellTextInColumn(
       string text,
       string columnHeader
    )

Parameters

text
  Text to find.
columnNumber
  The column header.

Return Value

The requested row, or null if none exists.

## FindRowWithCellTextInColumn(String,UInt32,UInt32) Method

Finds the first row with the specified text in the specified column, starting from the specified row.

C# Syntax

                ITableRow FindRowWithCellTextInColumn(
       string text,
       uint columnNumber,
       uint startFromRow
    )

Parameters

text
  Text to find.
columnNumber
  The column number to search.
startFromRow
  Index from which to start the search.

Return Value

The requested row, or null if none exists.

## FindRowWithCellTextInColumn(String,String,UInt32) Method

Finds the first row with the specified text in the specified column, starting from the specified row.

C# Syntax

                ITableRow FindRowWithCellTextInColumn(
       string text,
       string columnHeader,
       uint startFromRow
    )

Parameters

text
  Text to find.
columnNumber
  The column header.
startFromRow
  Index from which to start the search.

Return Value

The requested row, or null if none exists.

## FindRowWithCellTextInColumn(TextMatch,ColumnToSearch) Method

Finds the first row with the specified text in the specified column, in cases where the text or columnHeader may appear more than once. Scrolls to the found row if one exists.

Remarks

Usage example: `var row = grid.FindRowWithCellTextInColumn(TextMatch.Match("Portuguese", 2), ColumnToSearch.ByHeader("Language", 1));`

This example finds the 3rd occurrence of the text `Portuguese` in the 2nd column with the header `Language`.

C# Syntax

                ITableRow FindRowWithCellTextInColumn(
       TextMatch textMatch,
       ColumnToSearch ColumnToSearch
    )

Parameters

textMatch
  Description of the text we are looking for.
columnToSearch
  The column number or column header in which to search for the text.

Return Value

The requested row if one exists.
GeneralLeanFtException if the requested row cannot be found or error occurs during execution.

Tips to improve your search results... UFT Developer .NET SDK Reference Version 15.0-15.0.2 UFT Developer SDK Reference All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: