Button to hide column on a grid

Hello,

I have a grid with 5 columns

How can I create a javascript button to switch on/off column4?

Thanks

Use CSS to hide or show the field AND the label either on OnScriptInit or with a button

.css_esc3_grid_line {
display: none;
}
.css_esc3_label {
display: none;
}

FYI: also grids have an option to make columns optionals and end user can turn them on\off at run time