C1.Win.C1FlexGrid Namespace > C1FlexGridBase Class : AutoSearch Property |
'Declaration
<C1DescriptionAttribute("Gets or sets whether the grid should move the cursor searching for entries as the user types.")> <DefaultValueAttribute()> <C1CategoryAttribute("Behavior")> Public Property AutoSearch As AutoSearchEnum
'Usage
Dim instance As C1FlexGridBase Dim value As AutoSearchEnum instance.AutoSearch = value value = instance.AutoSearch
[C1Description("Gets or sets whether the grid should move the cursor searching for entries as the user types.")] [DefaultValue()] [C1Category("Behavior")] public AutoSearchEnum AutoSearch {get; set;}
[C1Description("Gets or sets whether the grid should move the cursor searching for entries as the user types.")] [DefaultValue()] [C1Category("Behavior")] public: property AutoSearchEnum AutoSearch { AutoSearchEnum get(); void set ( AutoSearchEnum value); }
If AutoSearch is on, the grid will search the current column as the user types, automatically moving the cursor and highlighting matches using the CellStyleCollection.Search style. 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 a second, the search buffer is reset. This amount of time can be changed by setting the AutoSearchDelay property.
If AutoSearch is on and AllowEditing is set to true, the user will need to hit ENTER, or F2 to start editing cells. Other keys are used for searching.
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