headerlines mandatory

hi all,

i have a form on which there are two grids , header and header line (like salestable form). Now there is a button, when user click that button i want that headerline will become mandatory.

is it possible ?

pls help

thanks