[]
        
(Showing Draft Content)

C1.Win.C1FlexGrid.C1FlexGridBase.FindRow

FindRow Method

FindRow(string, int, int, bool, bool, bool)

Finds a row that contains a specified string.

Declaration
public virtual int FindRow(string strFind, int rowStart, int col, bool caseSensitive, bool fullMatch, bool wrap)
Parameters
Type Name Description
string strFind

String to look for.

int rowStart

Index of the row where the search should start.

int col

Column that contains the data to be searched.

bool caseSensitive

Whether the search should be case-sensitive.

bool fullMatch

Whether a full match is required. If this parameter is set to false, searching for "John" may return a row that contains "Johnson".

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 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.

FindRow(object, int, int, bool)

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

Declaration
public virtual int FindRow(object objFind, int rowStart, int col, bool wrap)
Parameters
Type Name Description
object objFind

Object to look for.

int rowStart

Index of the row where the search should start.

int col

Column 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 contains the data, or -1 if the objFind object is not found.