DetailsView.DataItem Property
.NET Framework 3.0
Gets the data item bound to the DetailsView control.
Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
Use the DataItem property to access the data item bound to the DetailsView control. The data item is often used to access the field values of the current record directly. The type of the Object returned by this property varies depending on the data source. For example, when a SqlDataSource control is bound to the DetailsView control, a DataRowView object is returned.
Note: |
|---|
| This property is available only after data binding has occurred. Before data binding occurs, this property returns a null reference (Nothing in Visual Basic). This property is also not applicable when the DetailsView control is in insert mode and returns a null reference (Nothing in Visual Basic). |
Community Additions
ADD
Show:
Note: