Find Method
Finds the first occurance of the search value in the selected column in the grid.
Syntax
object.Find SchTxt, SchUp, MCase, MType
The syntax of the Find method has these parts:
| Part | Description |
| object | A DGrid control. |
| SchTxt | The text value to search for. |
| SchUp | The direction to search.True for Up False for Down. |
| MCase | True if search is case sensitive, False if not. |
| MType | The type of match. 0=dgAnyPart, 1=dgWholeField, 2= dgStartOfField. |
Return Value Long
Returns -1 if BOF or EOF is reached, -2 if the search was canceled, -3 if a read error occurs, or the row number of the found record.
Data Type
SchTxt String
SchUp
Boolean
MCase Boolean
SchUp
dgMTypeConstants