DynamicFilter.FilterChanged 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在用户为外键选择值时发生。
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
事件类型
- 属性
示例
以下示例演示如何处理已更改筛选器的事件。 处理程序在显示筛选行之前重置页面索引。
// 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
注解
FilterChanged当用户选择外键值时和呈现新值之前,将引发 该事件。 这使你能够提供可以执行自定义操作(如自定义分页)的事件处理方法。