DynamicDataExtensions.EnablePersistedSelection(BaseDataBoundControl) 메서드

정의

주의

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

선택 및 페이징을 지원하는 데이터 컨트롤에서 선택 영역이 유지되도록 합니다.

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)

매개 변수

dataBoundControl
BaseDataBoundControl

데이터 바인딩 컨트롤입니다.

특성

설명

확장 BaseDataBoundControl 되고 선택, 페이징 및 정렬을 지원하는 컨트롤에서 이 메서드를 호출하면 선택한 행이 표시되지 않는 경우에도 컨트롤이 선택을 유지할 수 있습니다. 예를 들어 사용자가 행을 선택한 다음 다른 페이지로 페이지를 이동하거나 사용자가 데이터를 정렬하는 경우 선택한 행이 선택된 상태로 유지됩니다. 이 메서드를 호출하지 않으면 사용자 페이지 또는 정렬 시 선택 항목이 손실됩니다.

RegisterControl 메서드는 EnablePersistedSelection를 호출합니다.

적용 대상