Type | Description | |||
Boolean | A boolean expression that specifies whether the control shows or hides the FilterFor field. |
The following screen shows shows the FilterFor field:
The following VB sample changes the control's filter as soon as the user start typing characters in the FilterFor field:
Private Sub ComboBox1_EditChange(ByVal ColIndex As Long) If (ColIndex = -1) Then Dim sFilter As String With ComboBox1 sFilter = .EditText(-1) .BeginUpdate .ClearFilter .FilterBarHeight = 0 If (Len(sFilter) > 0) Then With .Columns(0) .FilterType = exPattern .Filter = "*" + sFilter + "*" End With End If .ApplyFilter .EndUpdate End With End If End Sub