0
In your case you need to change the colspan=2 or 3 when you are hiding the other two or one TD(s).
<table>
<tr id="row1">
<td ><img src=""/></td> <td><img src=""/></td> <td><img src=""/></td>
</tr>
<tr id="row2">
<td id="col1"><img src=""/></td> <td id="col2"><img src=""/></td> <td id="col3"><img src=""/></td>
</tr>
</table>
You can also assign the column span from C# coding.
To change the column span using javascript:
JavaScript syntax: | object.style.columnSpan="all" document.getElementById("col1").style.columnSpan="all"; or document.getElementById("col1").style.columnSpan=2; (If you are hiding only one column) |
---|