To hide the grid buttons we will use the **sc\_btn\_display()** macro, this macro shows and hides the buttons in the toolbar at run time.

1- We use this macro in the **OnScriptInit** event of our grid, referring to our **new** button as **“new”**:

![](https://desk.zoho.com/DocsDisplay?zgId=716875472&mode=inline&blockId=lgtej88226420010e480d8b354a533bd58890)

2- We run the application and then verify that the new button is hidden

- Before:

![](https://desk.zoho.com/DocsDisplay?zgId=716875472&mode=inline&blockId=lgtej928836d230444e34a63c9881a19c442b)

- After:

![](https://desk.zoho.com/DocsDisplay?zgId=716875472&mode=inline&blockId=lgtej02a5964c2e384d8e98773f02853cc1d0)