<table class="display" id="jquerytable">
<thead>
<tr>
<th>Name</th>
<th>BillingAddress</th>
<th>DeliveryAddress</th>
<th>Eng 1</th>
<th>Eng 2</th>
</tr>
</thead>
<tbody>
<% foreach (var item in Model) { %>
<tr>
<td><%= Html.Encode(item.Name) %></td>
<td><%= Html.Encode(item.BillingAddress) %></td>
<td><%= Html.Encode(item.DeliveryAddress) %></td>
<td><%= Html.Encode(item.Engineer1Id) %></td>
<td><%= Html.Encode(item.Engineer2Id) %></td>
</tr>
<% } %>
</tbody>
</table>
How can I hide th Eng 1 and Eng 2? I try wit visible = “false” but not successful.
MattMitchell is mostly right; you really want to use:
The difference between
display: none;andvisibility: hidden;is thatnonetakes the element out of the document flow andvisibilityjust hides it. So by usinghidden, the possibility that you get weird layout effects is reduced.