asp.net.ph

TableCell.Wrap Property

System.Web.UI.WebControls Namespace   TableCell Class


Sets or retrieves a value indicating whether text wraps within a table cell.

Syntax


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.

Remarks

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.

Example

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 

See Also

TableCell Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 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 asp.net.ph