Читати англійською Редагувати

Поділитися через


IPersistedSelector.DataKey Property

Definition

Gets or sets the data-key value for the selected record in a data-bound control.

C#
public System.Web.UI.WebControls.DataKey DataKey { get; set; }

Property Value

The data-key value for the selected record in a data-bound control.

Remarks

The DataKey property differs from the default selection made by the data-bound control because the item selected can be persisted across paging and the item may not be on the current page.

Applies to

Продукт Версії
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1