Gets or sets the menu depth to which the System.Web.UI.WebControls.MenuItemBinding object is applied.
Documentation for this section has not yet been entered.
When creating a System.Web.UI.WebControls.MenuItemBinding object, you must specify the criteria for binding. The criteria indicate when a data item should be bound to a menu item. You can specify the MenuItemBinding.Depth property, the MenuItemBinding.DataMember property, or both.
Use the MenuItemBinding.Depth property to specify the menu depth at which to apply the System.Web.UI.WebControls.MenuItemBinding object. For example, the following System.Web.UI.WebControls.MenuItemBinding declaration binds the Name and ID fields of the data source to the MenuItem.Text and MenuItem.Value properties, respectively, of all menu items with a depth of 0:
Example
<asp:MenuItemBinding Depth="0" TextField="Name" ValueField="ID">
Sometimes you might need to create a menu item binding that specifies both a depth and a data member. This is often used when the data source contains items at different levels that have the same data member value. For example, you can have <Item> elements that appear at different levels within an XML file. The following System.Web.UI.WebControls.MenuItemBinding declarations show how to specify menu item bindings that apply to identical data members at different menu depths:
<asp:MenuItemBinding DataMember="Item" Depth="1" TextField="Title">
<asp:MenuItemBinding DataMember="Item" Depth="2" TextField="ISBN">
If a menu item binding is defined without a depth and a data member, the menu item binding is applied to all menu items within the menu. This is commonly used when all data items have the same properties and should be displayed identically, regardless of the menu depth.
After the binding criteria are established, you can then bind a property of a System.Web.UI.WebControls.MenuItem object that can be bound to a value. You can bind to a field of a data item or to a static value. When bound to a static value, all System.Web.UI.WebControls.MenuItem objects to which the System.Web.UI.WebControls.MenuItemBinding object is applied share the same value. Properties bound to fields contain the values of the field from the data source.
If conflicting System.Web.UI.WebControls.MenuItemBinding objects are defined, the System.Web.UI.WebControls.Menu control applies the menu item bindings in the following order of precedence:
[The 'ordered' type of list has not been implemented in the ECMA stylesheet.]