DynamicFilter.FilterChanged Event

Definition

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

C#
[System.ComponentModel.Browsable(false)]
public event EventHandler FilterChanged;
C#
public event EventHandler FilterChanged;

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.

C#
// 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;
}

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

Proizvod Verzije
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1