DynamicDataExtensions.EnablePersistedSelection(BaseDataBoundControl) Yöntem

Tanım

Dikkat

Use the EnablePersistedSelection property on a databound control such as GridView or ListView.

Seçimin, seçimi ve disk belleğini destekleyen veri denetimlerinde kalıcı olmasını sağlar.

public:
[System::Runtime::CompilerServices::Extension]
 static void EnablePersistedSelection(System::Web::UI::WebControls::BaseDataBoundControl ^ dataBoundControl);
public static void EnablePersistedSelection (this System.Web.UI.WebControls.BaseDataBoundControl dataBoundControl);
[System.Obsolete("Use the EnablePersistedSelection property on a databound control such as GridView or ListView.")]
public static void EnablePersistedSelection (this System.Web.UI.WebControls.BaseDataBoundControl dataBoundControl);
static member EnablePersistedSelection : System.Web.UI.WebControls.BaseDataBoundControl -> unit
[<System.Obsolete("Use the EnablePersistedSelection property on a databound control such as GridView or ListView.")>]
static member EnablePersistedSelection : System.Web.UI.WebControls.BaseDataBoundControl -> unit
<Extension()>
Public Sub EnablePersistedSelection (dataBoundControl As BaseDataBoundControl)

Parametreler

dataBoundControl
BaseDataBoundControl

Veri sınırı denetimi.

Öznitelikler

Açıklamalar

Genişleyen BaseDataBoundControl ve seçim, sayfalama ve sıralamayı destekleyen denetimlerde, bu yöntemin çağrılması, seçili satır görünür olmadığında bile denetimin seçimi kalıcı hale geçirmesini sağlar. Örneğin, kullanıcı bir satır seçip başka bir sayfaya sayfa eklerse veya kullanıcı verileri sıralarsa, seçili satır seçili kalır. Bu yöntem çağrılmazsa, kullanıcı sayfaları veya sıralamaları yapıldığında seçim kaybolur.

RegisterControl metodu EnablePersistedSelection öğesini çağırır.

Şunlara uygulanır