asp.net.ph

TreeNode.DataItem Property

System.Web.UI.WebControls Namespace   TreeNode Class


.NET Framework version 2.0

Returns the data item bound to the TreeNode control.

Syntax


Script [ Object variable = ] TreeNode.DataItem

This property can only be used programmatically; it cannot be set when declaring the control.

Property Value


variable An Object that represents the data item bound to the TreeNode control.

The property is read only with no default value.

Remarks

Use the DataItem property to access the data item bound to the TreeNode control. The data item is often used to access the field value of the current record in the data source directly.

NOTE: This property is available only after data binding has occurred; otherwise, this property returns a null reference ( Nothing in Visual Basic ).

See Also

TreeNode Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph