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... OpenText™ Functional Testing for Developers .NET SDK Version: 25.2 OpenText™ Functional Testing for Developers SDK 25.2 All View Local Help Center View Online Help Center Version: