Redigera

Dela via


DynamicFilter.FilterChanged Event

Definition

Occurs when the user select a value for the foreign key.

public:
 event EventHandler ^ FilterChanged;
[System.ComponentModel.Browsable(false)]
public event EventHandler FilterChanged;
public event EventHandler FilterChanged;
[<System.ComponentModel.Browsable(false)>]
member this.FilterChanged : EventHandler 
member this.FilterChanged : EventHandler 
Public Custom Event FilterChanged As EventHandler 
Public Event FilterChanged As EventHandler 

Event Type

Attributes

Examples

The following example shows how to handle a filter-changed event. The handler resets the page index before the filtered rows are displayed.

// Handle the filter change event.
protected void OnFilterSelectedIndexChanged(object sender, EventArgs e) {
    // Reset the index of the page to display after 
    // the data filter value has been changed.
    GridView1.PageIndex = 0;
}
' Handle the filter change event.
Protected Sub OnFilterSelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs)
    ' Reset the index of the page to display after 
    ' the data filter value has been changed.
    GridView1.PageIndex = 0

End Sub

Remarks

The FilterChanged event is raised when the user selects a foreign-key value and before the new value is rendered. This enables you to provide an event-handling method that can perform custom operations, such as custom paging.

Applies to