Version

Item Property (TemplateContainer)

Item containing data to bind to.
Syntax
'Declaration
 
Public Overridable ReadOnly Property Item As Object
public virtual object Item {get;}
Remarks
The Item contains a reference to the object which owns this TemplateContainer. For instance, the DataItem property of the TemplateContainer for a Tree Node object will contain a reference to the DataTreeNode object. Declarative databinding statements can then be used in aspx files to access the properties of the Node object using Eval(Container.OwnerItem("propName")) syntax.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also