FlexGrid for WinForms
FindRowRegex Method



The regular expression pattern to match.
Index of the row where the search should start.
Column that contains the data to be searched.
Whether the search should stop at the bottom of the grid or wrap around and restart from the first scrollable row.
Finds a row that contains a specified value in a given column using a RegularExpression.
Syntax
'Declaration
 
Public Overridable Function FindRowRegex( _
   ByVal pattern As String, _
   ByVal rowStart As Integer, _
   ByVal col As Integer, _
   ByVal wrap As Boolean _
) As Integer
'Usage
 
Dim instance As C1FlexGridBase
Dim pattern As String
Dim rowStart As Integer
Dim col As Integer
Dim wrap As Boolean
Dim value As Integer
 
value = instance.FindRowRegex(pattern, rowStart, col, wrap)
public virtual int FindRowRegex( 
   string pattern,
   int rowStart,
   int col,
   bool wrap
)
public:
virtual int FindRowRegex( 
   String^ pattern,
   int rowStart,
   int col,
   bool wrap
) 

Parameters

pattern
The regular expression pattern to match.
rowStart
Index of the row where the search should start.
col
Column that contains the data to be searched.
wrap
Whether the search should stop at the bottom of the grid or wrap around and restart from the first scrollable row.

Return Value

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 System.Text.RegularExpressions.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.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

C1FlexGridBase Class
C1FlexGridBase Members

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Send Feedback