System.Web.UI.HtmlControls Namespace HtmlTableCell Class
Sets or retrieves a value indicating whether text within an HtmlTableCell automatically continues on the next line when it reaches the end of the cell.
Inline |
<th | td nowrap ... > |
Script |
HtmlTableCell.NoWrap [ = true | false ] |
This property accepts or returns only a boolean value: true if text does not automatically wrap in the cell; otherwise false. Default value is false.
Use the NoWrap property to specify or determine whether the text in a table cell automatically continues on the next line when it reaches the end of the cell.
Setting this property to true supresses the automatic word wrap provided in HTML for tables.
The below snippet shows how to declaratively set the NoWrap property of a table cell at design time.
<table cellspacing=1 width="92%" runat="server">
<tr>
<th>Table header</th></tr>
<tr>
<td nowrap>Table data</td></tr>
</table>
The following example demonstrates how to use the NoWrap property to programmatically control whether the text wraps in the cells of an HtmlTable.
Show me
HtmlTableCell Members Height Width