共用方式為


ListView.IDataBoundListControl.EnablePersistedSelection 屬性

定義

取得或設定值,這個值指定當使用者逐頁巡覽資料繫結控制項中的資料時,是否保存某個資料列的選取狀態。

property bool System::Web::UI::WebControls::IDataBoundListControl::EnablePersistedSelection { bool get(); void set(bool value); };
bool System.Web.UI.WebControls.IDataBoundListControl.EnablePersistedSelection { get; set; }
member this.System.Web.UI.WebControls.IDataBoundListControl.EnablePersistedSelection : bool with get, set
 Property EnablePersistedSelection As Boolean Implements IDataBoundListControl.EnablePersistedSelection

屬性值

Boolean

如果是根據資料索引鍵選取範圍,則為 true,否則為 false

實作

備註

這個成員是明確介面成員實作, 只有在 ListView 執行個體轉換成 IDataBoundListControl 介面時,才能使用這個成員。

適用於