Unable to set server side table's cell widths as percentages

D

Dot net work

Hello.

Is it possible to build up a dynamic server side table, and specify
the column widths as percentages? I've tried this:

Set the table width to 100%, then:

FirstColumn.Width = New Unit(50, UnitType.Percentage)
SecondColumn.Width = New Unit(30, UnitType.Percentage)
ThirdColumn.Width = New Unit(20, UnitType.Percentage)

But the widths get ignored.

If I use Unit.Percentage(50), this also gets ignored.

TIA for any suggestions.
-dnw.
 
E

Eliyahu Goldin

When it comes to the column width, browsers consider your instructions as
recommendations. Usually it is possible to layout your page nicely without
specifying exact column width.

Eliyahu
 
D

Dot Net Work

I'm sorry, I have made a mistake.

The syntax that I used was fine.
I had the server table positioned inside a small html table. What I
needed to do was set *that* table's overall width to 100%
I now have this working.
-dnw.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,008
Latest member
Rahul737

Latest Threads

Top