In Grid application, change the number of columns displayed with an internal function

Hello to all forum, I’m using SC8 Italian, I would like change dynamically the number of columns displayed in a Grid during the 'execution of the code, using an internal command, there is a function or internal command to change the number of columns displayed?
I know that it is possible to activate the 'option for the manual change the number of columns displayed, but I would do it with an internal command or function.
Thank you very much for your reply.

grid.jpg

sc_apl_conf ?

Ex. 7: Hides “my_field” on the application “my_form” dinamically.
sc_apl_conf(“my_form”, “field_display_off”, “my_field”);

I havent done that in a grid yet tho…

Thanks rr very much for your answer …
Domenico