event FilterChange ()
Occurs when filter was changed.

 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 specify the caption for the control's filter bar.

The following VB sample changes the caption of the control's filter bar:

Private Sub List1_FilterChange()
    With List1
        .FilterBarCaption = "new caption"
    End With
End Sub

The following C++ sample changes the caption of the control's filter bar:

void OnFilterChangeList1() 
{
	m_list.SetFilterBarCaption( "new caption" );
}

The following VB.NET sample changes the caption of the control's filter bar:

Private Sub AxList1_FilterChange(ByVal sender As Object, ByVal e As System.EventArgs) Handles AxList1.FilterChange
    With AxList1
        .FilterBarCaption = "new caption"
    End With
End Sub

The following C# sample changes the caption of the control's filter bar:

private void axList1_FilterChange(object sender, EventArgs e)
{
	axList1.FilterBarCaption = "new caption";
}

The following VFP sample changes the caption of the control's filter bar:

*** ActiveX Control Event ***

with thisform.List1
	.FilterBarCaption = "new caption"
endwith

 


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