1. Create a class in your style sheet as this:
2. Apply this class to the datagrid as:
Bobby <redwards@ncen.com> wrote in message news:<#1R5SXEGEHA.3132@TK2MSFTNGP12.phx.gbl>...
> Hi,
>
> I have a control that inherits from datagrid that has resizable columns.
> when a column is sized smaller than the text length the overflow
> attribute kicks in and displays an ellipsis for the hidden text.
>
> My problem is that the text wraps unless I have a <nobr> tag in the
> cell. I've tried <td nowrap>, <td nowrap="nowrap"> and adding it to the
> style. The only thing that seems to work is <nobr> in the cell.
>
> The problem is that I have to intercept the output and add the tag to
> each cell, which is a bad way to do this. If I add the tag on the
> InitializeCell() it gets overwritten later.
>
> how can I set each cell in my grid to have this tag when it's written to
> the browser; or how can I get nowrap to work properly?
>
>
> *** Sent via Developersdex
http://www.developersdex.com ***