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

  • Thread starter Thread starter Dot net work
  • Start date Start date
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.
 
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
 
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.
 
Back
Top