PDA

View Full Version : Self-adjusting Table Cell Width


wylbur
08-08-2006, 07:27 PM
Hi,

I'm loading a string to a read-only textbox in ASP.NET,
which is in a table cell container. Upon rendering,
about half of the string is visible within the textbox/tablecell,
with the rest of it being truncated (there is another cell to the right
of the aforementioned tablecell container). I know that the entire
string is on the webpage, as I can see it when I look at the source.

I can use DIV tags with CSS to set a fixed width, and I can expand
the table cell out to whatever width I want using this approach,
revealing more and more of the textbox as I make the DIV CSS wider
- but this is not what I want to do.

I want the width of the column of the table cells to expand out
to accommodate the width of the longest string within the longest textbox.


Can anyone give me a clue as to how best to do that?


Thanks in advance!

wylbur
08-09-2006, 05:02 AM
Problem Resolved.

rmedek
08-09-2006, 06:09 AM
Mind explaining how you did it? Might help out others looking for an answer…