FormView::DataItem Property
.NET Framework (current version)
Gets the data item bound to the FormView control.
Assembly: System.Web (in System.Web.dll)
Property Value
Type: System::Object^An Object that represents the data item bound to the FormView control.
Implements
IDataItemContainer::DataItemUse the DataItem property to access the data item bound to the FormView 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 FormView control, a DataRowView object is returned.
Note |
|---|
This property is available only after data binding has occurred. Before data binding occurs, this property returns null. This property is also not applicable when the FormView control is in insert mode and returns null. |
.NET Framework
Available since 2.0
Available since 2.0
Show:
