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?
To hide a column entirely from view, meaning it will not be displayed in either the normal or details row, simply use the visible column option and set it to false . This example shows a table where the first column ID is completely hidden from view using the data-visible column attribute.
To hide individual columns, open the table for which you are hiding a column, right-click the column, and click Hide from Client Tools. You can hide multiple columns at a time by holding down the Ctrl key or the Shift key.
You can hide cells using visibility: hidden . A side note, learn about html table elements such as thead , tbody and th . They will help structure your table with greater semantic meaning.
You need to use Style Sheet for this purpose.
<td style="display:none;">
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With