DynamicDataExtensions.EnablePersistedSelection(BaseDataBoundControl) Yöntem

Tanım

Dikkat

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

Seçimi ve sayfalandırmayı destekleyen veri denetimlerinde seçimin 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şleten 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 getirmek için olanak tanır. Örneğin, kullanıcı bir satır seçerse ve sonra başka bir sayfaya sayfa yazarsa 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 yöntemi çağrısında bulunurEnablePersistedSelection.

Şunlara uygulanır