ControlFreak
11-11-2006, 04:14 PM
How do you set column width on a table in VWD2005? This column has 2 cell
and the rows can change. I want the right column to be small.
I do not know what ColumnSpan does. The table looks the same at runtime no matter what I set it at.
Dim tr As New TableRow
'Repeat for each cell on the row
Dim tc1 As New TableCell
tc1.ColumnSpan = 4
tc1.Text = ValueList(i)
tr.Cells.Add(tc1)
'Repeat for each Row in the table
ObjectTable.Rows.Add(tr)
'Repeat for each cell on the row
Dim tc2 As New TableCell
tc2.ColumnSpan = 4
tc2.Text = ValueList(i + 1)
tr.Cells.Add(tc2)
'Repeat for each Row in the table
ObjectTable.Rows.Add(tr)
and the rows can change. I want the right column to be small.
I do not know what ColumnSpan does. The table looks the same at runtime no matter what I set it at.
Dim tr As New TableRow
'Repeat for each cell on the row
Dim tc1 As New TableCell
tc1.ColumnSpan = 4
tc1.Text = ValueList(i)
tr.Cells.Add(tc1)
'Repeat for each Row in the table
ObjectTable.Rows.Add(tr)
'Repeat for each cell on the row
Dim tc2 As New TableCell
tc2.ColumnSpan = 4
tc2.Text = ValueList(i + 1)
tr.Cells.Add(tc2)
'Repeat for each Row in the table
ObjectTable.Rows.Add(tr)