Specifies the hierarchical level this DataBinding applies to.
[Visual Basic]
Public Property Depth As
Int32
[C#]
public
Int32 Depth {get; set;}
Remarks
Specifies the hierarchical level this DataBinding applies to. Depth starts with zero.
For example, when a menu's DataBind() is called, if Depth is 0, items in the top group will have the target property assigned to the value from the corresponding data field.
In another example, when a second level menu group's DataBind is called, if Depth is 0, items from the second level menu group will have the target property assigned to the value from the corresponding data field.
Here's a list of frequently used properties when defining a DataBinding:
- Use Property to specify the target property of a navigation item to be assigned;
- Use DataField to specify what value from the database to assign to the target property;
- Use Depth to specify which level of the item the above Property and DataField mapping applies.
Setting Depth to -1 to apply current DataBinding to items at all levels.
See data binding for more information.
See Also
DataBinding Class | EO.Web Namespace