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