currently its excatly the opposite i have
on grid header click javascript is initated , the header name stored in hiden field in script
then the hidden field value checked with database value from code beehind
& then depending on the values controls will be visible true/ false