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”:
2- We run the application and then verify that the new button is hidden
- Before:
- After: