K
Ken Dippold
Hello, I am trying to create textboxes in a table that has a certain amount
of cells decided at run time. That is decided by the desc_flag.
So if I have 7 cells the first 6 cells are empty and only the 7th cell gets
the text box.
there will be 2 rows in this table the first row displays data, the second
will be text boxes for entry. Any Help will be greatly appriciated
Thanks
Ken
Dim numrows As Integer = 2
Dim numcells As Integer = desc_flag
Dim j As Integer
Dim text As New TextBox
For j = 0 To numrows - 1
If j > 0 Then GoTo 30
Dim r As New TableRow
Dim i As Integer
Dim w As Integer = 5
For i = 0 To numcells - 1
Dim c As New TableCell
c.Controls.Add(text)
r.Cells.Add(c)
w = w + 1
Next i
Table1.Rows.Add(r)
Next j
of cells decided at run time. That is decided by the desc_flag.
So if I have 7 cells the first 6 cells are empty and only the 7th cell gets
the text box.
there will be 2 rows in this table the first row displays data, the second
will be text boxes for entry. Any Help will be greatly appriciated
Thanks
Ken
Dim numrows As Integer = 2
Dim numcells As Integer = desc_flag
Dim j As Integer
Dim text As New TextBox
For j = 0 To numrows - 1
If j > 0 Then GoTo 30
Dim r As New TableRow
Dim i As Integer
Dim w As Integer = 5
For i = 0 To numcells - 1
Dim c As New TableCell
c.Controls.Add(text)
r.Cells.Add(c)
w = w + 1
Next i
Table1.Rows.Add(r)
Next j