IDataItemContainer.DataItem Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
When implemented, gets an object
that is used in simplified data-binding operations.
public:
property System::Object ^ DataItem { System::Object ^ get(); };
public object DataItem { get; }
member this.DataItem : obj
Public ReadOnly Property DataItem As Object
Property Value
An object
that represents the value to use when data-binding operations are performed.
Examples
The following code example demonstrates how to implement a type that uses the IDataItemContainer interface. The SimpleSpreadsheetRow
class is a container class with a member named Data
. It implements the IDataItemContainer interface by mapping the Data
property to the DataItem property. Simplified data-binding expressions can bind to the data object using the DataItem property.
object IDataItemContainer.DataItem
{
get
{
return Data;
}
}
ReadOnly Property DataItem() As Object Implements IDataItemContainer.DataItem
Get
Return Data
End Get
End Property
Remarks
The DataItem property identifies an object that is used in data-binding operations and late-binding expressions.