| |||||
TableCell.Wrap PropertySystem.Web.UI.WebControls Namespace TableCell Class Sets or retrieves a value indicating whether text wraps within a table cell. Syntax
This property accepts or returns only a boolean value: true if text automatically wraps in the cell; otherwise false. Default value is true. RemarksUse 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. ExampleThe 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. See Also |
| ||||
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme