How To Use Radiobuttons To Modify The Columns Of Gridview And Formin Yii

I have a gridview(admin.php) of test table. Here, I have two colums Contact Approval and Greetings Approval. I need to put two radio buttons (‘Contact’ and ‘Greetings’)in admin page. When I click on ‘Contact’ radio button all the columns except for Greetings Approval should be displayed in gridview and When I click on ‘Greetings’ radio button all the columns except for Contact Approval should be displayed in gridview. The update.php should also have the same effect.i.e when I click on edit option the update.php should have the fields based on the radiobutton data.How can I do this.

Dear Friend

Kindly check whether the following thread is helpful.

How To Hide/show Columns In Cgridview Via Ajax

Regards.