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當使用者選取外鍵值,並在轉譯新值之前引發事件。 這可讓您提供可執行自訂作業的事件處理方法,例如自訂分頁。