Duration (Pacific Standard Time):
To (Pacific Standard Time):
Impact:
User Action:

DynamicDataExtensions.EnablePersistedSelection Method (BaseDataBoundControl)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Note: This API is now obsolete.

Enables selection to be persisted in data controls that support selection and paging.

Namespace:   System.Web.DynamicData
Assembly:  System.Web.DynamicData (in System.Web.DynamicData.dll)

<ExtensionAttribute>
<ObsoleteAttribute("Use the EnablePersistedSelection property on a databound control such as GridView or ListView.")>
Public Shared Sub EnablePersistedSelection (
	dataBoundControl As BaseDataBoundControl
)

Parameters

dataBoundControl
Type: System.Web.UI.WebControls.BaseDataBoundControl

The data bound control.

In controls that extend BaseDataBoundControl and that support selection, paging, and sorting, calling this method enables the control to persist selection even when the selected row is not visible. For example, if the user selects a row and then pages to another page, or if the user sorts the data, the selected row remains selected. If this method is not called, selection is lost when the user pages or sorts.

The RegisterControl method calls EnablePersistedSelection.

.NET Framework
Available since 3.5
Return to top