FindRowWithCellTextInColumn Method (IGridBase)
Finds the first row with this text in the specified column. This method has multiple overloads.
FindRowWithCellTextInColumn(String,UInt32) Method
C# Syntax
ITableRow FindRowWithCellTextInColumn( string text, uint columnNumber )
Parameters
- text
- Text to find.
- columnNumber
- The column number to search.
Return Value
FindRowWithCellTextInColumn(String,String) Method
C# Syntax
ITableRow FindRowWithCellTextInColumn( string text, string columnHeader )
Parameters
- text
- Text to find.
- columnNumber
- The column header.
Return Value
FindRowWithCellTextInColumn(String,UInt32,UInt32) Method
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
FindRowWithCellTextInColumn(String,String,UInt32) Method
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
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
GeneralLeanFtException if the requested row cannot be found or error occurs during execution.