NavBarGroupCollection.FindByName(String) Method
In This Article
Returns a group object with the specified NavBarGroup.Name property value.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
name | String | A String value representing the Nav |
#Returns
Type | Description |
---|---|
Nav |
A Nav |
#Remarks
Use this method to obtain a group specified by a unique name assigned to its NavBarGroup.Name property.
#Example
...
Protected Sub ASPxNavBar1_ItemDataBound(ByVal source As Object, ByVal e As
DevExpress.Web.NavBarItemEventArgs) Handles ASPxNavBar1.ItemDataBound
Dim g2 As Object = ASPxNavBar1.Groups.FindByName("g2")
Dim g1 As Object = ASPxNavBar1.Groups.FindByName("g1")
End Sub
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
ASPxNavBar1.DataBind()
End Sub
...
See Also