How to hide columns in HTML table?

user601367 picture user601367 · Mar 26, 2011 · Viewed 367.8k times · Source

I have created a table in ASPX. I want to hide one of the columns based on the requirement but there is no attribute like visible in the HTML table building. How can I solve my problem?

Answer

Anuraj picture Anuraj · Mar 26, 2011

You need to use Style Sheet for this purpose.

<td style="display:none;">