System.Web.UI.WebControls.Menu.SetItemDataBound Method

Sets the MenuItem.DataBound property of the specified System.Web.UI.WebControls.MenuItem object with the specified value.

Syntax

protected void SetItemDataBound (MenuItem node, bool dataBound)

Parameters

node
The System.Web.UI.WebControls.MenuItem to set.
dataBound
true to set the node as data-bound; otherwise, false.

Remarks

The Menu.SetItemDataBound(MenuItem, bool) method is a helper method used by derived classes to set the MenuItem.DataBound property of the specified System.Web.UI.WebControls.MenuItem object.

Requirements

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