Using TEXT-OVERFLOW instead of Wrap, Clip or MeasureString

Michael Schwarz on Friday, November 28, 2003

I read the last post http://weblogs.asp.net/despos/posts/40186.aspx [1] and I am not sure if this is the best solution having nice formatted columns/rows. For this problem I'm using the CSS style TEXT-OVERFLOW:ellipsis (http://msdn.microsoft.com/.../textoverflow.asp [2]) and a small javascript (it is a HTC file).

The CSS style will show the text cutted at the column end with three points ("..."). But the TD still has the complete text, so you can simply show this innerText with a small javascript.