EnablePersistedSelection Method

DynamicDataExtensions.EnablePersistedSelection Method (BaseDataBoundControl)

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)

[ObsoleteAttribute("Use the EnablePersistedSelection property on a databound control such as GridView or ListView.")]
public static void EnablePersistedSelection(
	this BaseDataBoundControl 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 M:System.Web.DynamicData.DynamicDataManager.RegisterControl method calls EnablePersistedSelection.

.NET Framework
Available since 3.5
Return to top
© 2015 Microsoft