Returns or sets whether the control will search for entries as they are typed.
Syntax
[form!]VSFlexGrid.AutoSearch[ = AutoSearchSettings ]
Remarks
The settings for the AutoSearch property are described below:
Constant |
Value |
Description |
flexSearchNone |
0 |
No auto search. |
flexSearchFromTop |
1 |
When the user types, start searching from the first row. |
flexSearchFromCursor |
2 |
When the user types, start searching from the current row. |
If AutoSearch is on, the control will search the current column as the user types, automatically moving the cursor and highlighting partial matches. The search is case-insensitive. The search is canceled when the user presses the ESC key or moves the selection with the mouse or cursor keys.
When the user stops typing for about two seconds, the search buffer is reset. This amount of time can be changed by setting the AutoSearchDelay property.
If AutoSearch is on and the Editable property is set to True, the user will need to hit ENTER, SPACE, or F2 to start editing cells. Other keys are used for searching.
This property only affects the behavior of the grid itself. To automatically select options as the user types into a combo list or list box, use the ComboSearch property.
Data Type
AutoSearchSettings (Enumeration)
Default Value
flexSearchNone (0)