Articles in this section
Category / Section

How can I show/hide button(s) in a ButtonBar at run time?

1 min read


The following code snippet shows how a button (ButtonBarItem) in a ButtonBar can be hidden at run time:



        ButtonBar bar = (ButtonBar)this.GridGroupingControl1.ButtonBars[0];

        //Hide the 1st Button in the ButtonBar

((ButtonBarItem)bar.BarItems[0]).Visible = false;



Dim bar As Syncfusion.Web.UI.WebControls.Grid.Grouping.ButtonBar = Me.GridGroupingControl1.ButtonBars(0)

'Hide the 1st Button in the ButtonBar

CType(bar.BarItems(0), Syncfusion.Web.UI.WebControls.Grid.Grouping.ButtonBarItem).Visible = False

Did you find this information helpful?
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment