FlexGrid for WinForms
FindRow(String,Int32,Int32,Boolean,Boolean,Boolean) Method



String to look for.
Index of the row where the search should start.
Column that contains the data to be searched.
Whether the search should be case-sensitive.
Whether a full match is required. If this parameter is set to false, searching for "John" may return a row that contains "Johnson".
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 string.
Syntax
'Declaration
 
Public Overloads Overridable Function FindRow( _
   ByVal strFind As String, _
   ByVal rowStart As Integer, _
   ByVal col As Integer, _
   ByVal caseSensitive As Boolean, _
   ByVal fullMatch As Boolean, _
   ByVal wrap As Boolean _
) As Integer
'Usage
 
Dim instance As C1FlexGridBase
Dim strFind As String
Dim rowStart As Integer
Dim col As Integer
Dim caseSensitive As Boolean
Dim fullMatch As Boolean
Dim wrap As Boolean
Dim value As Integer
 
value = instance.FindRow(strFind, rowStart, col, caseSensitive, fullMatch, wrap)

Parameters

strFind
String to look for.
rowStart
Index of the row where the search should start.
col
Column that contains the data to be searched.
caseSensitive
Whether the search should be case-sensitive.
fullMatch
Whether a full match is required. If this parameter is set to false, searching for "John" may return a row that contains "Johnson".
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 contains the string, or -1 if the string is not found.
Remarks
To allow users to search for data as they type, use the AutoSearch property.
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
Overload List

 

 


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

Send Feedback