DetailsView::DataItem Property
Gets the data item bound to the DetailsView control.
Assembly: System.Web (in System.Web.dll)
Property Value
Type: System::ObjectAn Object that represents the data item bound to the DetailsView control.
Implements
IDataItemContainer::DataItemUse 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 nullptr. This property is also not applicable when the DetailsView control is in insert mode and returns nullptr. |
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Note