2014年7月13日 星期日

[RESOLVED] Hide gridview columns when checkbox checked ?


Hello Everyone,



I want to add "Checkbox" into every column Header of a Grid View. When the checkbox is checked, the selected column(entire column) should hide. And when deselect(un check) the checkbox, the column should show.



Thanks in Advance,



Venkata.



You can do that checkbox autopostback true and then on the checked event you can hide gridview column programatically.


This link has code to show how to hide column programatically.


http://ramanisandeep.net/2009/04/07/how-to-hide-gridview-column-programmatically/


Regards,


沒有留言:

張貼留言