ListView.PerformDataBinding(IEnumerable) 方法

定義

ListView 控制項繫結至指定的資料來源。

protected public:
 override void PerformDataBinding(System::Collections::IEnumerable ^ data);
protected internal override void PerformDataBinding (System.Collections.IEnumerable data);
override this.PerformDataBinding : System.Collections.IEnumerable -> unit
Protected Friend Overrides Sub PerformDataBinding (data As IEnumerable)

參數

data
IEnumerable

實作 IEnumerable 介面且包含資料的物件。

備註

方法是 PerformDataBinding 協助程式方法,由 控制項呼叫 ListView ,以將控制項系結至指定的資料來源。

給繼承者的注意事項

因為方法 DataBind() 已密封,所以如果您想要在系結資料時執行任何其他工作,則必須覆寫 PerformDataBinding(IEnumerable) 方法。

適用於

另請參閱