Category / Section
How can I programmatically add a NavigatorBar to the GridGroupingControl?
1 min read
You can programmatically add a NavigatorBar to the Grid using ButtonBars.Add method.
C#
//New NavigatorBar
NavigatorBar navBar = new NavigatorBar();
//Add the default buttons to the NavigatorBar
NavigatorBar.AddDefaultNavigatorBarButtons(navBar);
//Add the NavigatorBar to the Grid's ButtonBars Collection
this.GridGroupingControl1.ButtonBars.Add(navBar);
VB
'New NavigatorBar
Private navBar As NavigatorBar = New NavigatorBar()
'Add the default buttons to the NavigatorBar
NavigatorBar.AddDefaultNavigatorBarButtons(navBar)
'Add the NavigatorBar to the Grid's ButtonBars Collection
Me.GridGroupingControl1.ButtonBars.Add(navBar)