[]
Finds a row that contains a specified string.
public virtual int FindRow(string strFind, int rowStart, int col, bool caseSensitive, bool fullMatch, bool wrap)
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. |
Type | Description |
---|---|
int | The index of the row that contains the string, or -1 if the string is not found. |
To allow users to search for data as they type, use the AutoSearch property.
Finds a row that contains a specified value in a given column.
public virtual int FindRow(object objFind, int rowStart, int col, bool wrap)
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. |
Type | Description |
---|---|
int | The index of the row that contains the data, or -1 if the |