[]
        
(Showing Draft Content)

C1.Win.FlexGrid.C1FlexGridBase.FindRowRegex

FindRowRegex Method

FindRowRegex(string, int, int, bool)

Finds a row that contains a specified value in a given column using a RegularExpression.

Declaration
public virtual int FindRowRegex(string pattern, int rowStart, int col, bool wrap)
Parameters
Type Name Description
string pattern

The regular expression pattern to match.

int rowStart

Index of the row where the search should start.

int col

Column that contains the data to be searched.

bool wrap

Whether the search should stop at the bottom of the grid or wrap around and restart from the first scrollable row.

Returns
Type Description
int

The index of the row that matches the pattern, or -1 if no matches were found.

Remarks

The pattern parameter specifies a regular expression pattern expressed in the usual Regex syntax. The regular expression syntax supports character classes, ranges, repeat counts, alternate matches, and more. Please refer to the .NET documentation for details and examples.