語言

GridView.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

屬性值

true如果列選擇是基於資料鍵值;否則,。 false

實作

備註

此成員為明確介面成員實作。 它只能在實 GridView 例投射到 IDataBoundListControl 介面時使用。

ASP.NET Dynamic Data 支援此功能。

適用於