System.Web.UI.WebControls.MenuItem.DataItem Property

Gets the data item that is bound to the menu item.

Syntax

[System.ComponentModel.Browsable(false)]
[System.ComponentModel.DefaultValue(null)]
public object DataItem { get; }

Value

Documentation for this section has not yet been entered.

Remarks

When the System.Web.UI.WebControls.Menu control is bound to a data source, such as an System.Web.UI.WebControls.XmlDataSource object, this property is set to the data item that is bound to this specific menu item. This property is commonly used to access the value of the data item.

Note:

This property is available only after data binding has occurred.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0