IDataItemContainer.DataItem Property

When implemented, gets an object that is used in simplified data-binding operations.

Namespace: System.Web.UI
Assembly: System.Web (in system.web.dll)

ReadOnly Property DataItem As Object
Dim instance As IDataItemContainer
Dim value As Object

value = instance.DataItem

/** @property */
Object get_DataItem ()

function get DataItem () : Object

Not applicable.

Property Value

An object that represents the value to use when data-binding operations are performed.

The DataItem property identifies an object that is used in data-binding operations and late-binding expressions.

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.

ReadOnly Property DataItem() As Object Implements IDataItemContainer.DataItem
        Return Data
    End Get
End Property

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0