event FilterChange ()
Occurs when the filter was changed. /*not supported in the lite version*/

 TypeDescription 

Use the FilterChange event to notify your application that the control's filter is changed. Use the Filter and FilterType properties to retrieve the column's filter string, if case, and the column's filter type. The ApplyFilter and ClearFilter methods fire the FilterChange event. Use the DisplayFilterButton property to add a filter bar button to the column's caption. Use the FilterBarHeight property to specify the height of the control's filter bar. Use the FilterBarFont property to specify the font for the control's filter bar. Use the FilterBarCaption property to change the caption of the control's filter bar.

The following VB sample changes the caption in the control's filter bar when the user changes the filter:

Private Sub ComboBox1_FilterChange()
    With ComboBox1
        .FilterBarCaption = "custom filter caption"
    End With
End Sub

The following C++ sample changes the caption in the control's filter bar when the user changes the filter:

void OnFilterChangeCombobox1() 
{
	m_combobox.SetFilterBarCaption( "custom filter caption" );
}

The following VB.NET sample changes the caption in the control's filter bar when the user changes the filter:

Private Sub AxComboBox1_FilterChange(ByVal sender As Object, ByVal e As System.EventArgs) Handles AxComboBox1.FilterChange
    With AxComboBox1
        .FilterBarCaption = "custom filter caption"
    End With
End Sub

The following C# sample changes the caption in the control's filter bar when the user changes the filter:

private void axComboBox1_FilterChange(object sender, EventArgs e)
{
	axComboBox1.FilterBarCaption = "custom filter caption";
}

The following VFP sample changes the caption in the control's filter bar when the user changes the filter:

*** ActiveX Control Event ***

with thisform.ComboBox1
	.FilterBarCaption = "custom filter caption"
endwith

 


Send comments on this topic.
© 1999-2006 Exontrol Inc, Software. All rights reserved.