I have a (html)table (sample layout below) that I'd like to hide the last two columns under certain conditions, using the C# codebehind. I'd prefer not to do this by shrinking the width of the columns to 0, though I'm not ruling it out. There aren't any CSS classes really supplied to most of the rows and none of the columns. I've tried using a colgroup to set the display to none as well as the visibility to hidden on the colgroup, but with no luck.
_____________
|__|__|__|__|
|__|__|__|__|
|__|__|__|__|
to
_______
|__|__|
|__|__|
|__|__|
Any thoughts?