System.Web.UI.WebControls.DetailsView.SelectedValue Property

Gets the data key value of the current record in a System.Web.UI.WebControls.DetailsView control.

Syntax

[System.ComponentModel.Browsable(false)]
[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
public object SelectedValue { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the DetailsView.SelectedValue property to determine the data key value for the current record. To retrieve the actual System.Web.UI.WebControls.DataKey object that represents the data key for the record, use the DetailsView.DataKey property.

This property is the default property that a System.Web.UI.WebControls.ControlParameter object binds to at run time. For more information, see System.Web.UI.ControlValuePropertyAttribute, System.Web.UI.WebControls.ControlParameter, and Using Parameters with Data Source Controls.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0