if empty grid?

Hello I am new to this tool and I need to assess whether a grid is empty, to hide or display the “New” button.
How do I access the properties of the grid …

thanks

To find out if the grid is empty you need to do a prefetch on the database in the onscriptinit. You can enable / disable the button by using macro’s. However useually SC is handling the visibility of these buttons.