Inserting Radio Button into table

  • Thread starter Thread starter Jeff
  • Start date Start date
J

Jeff

Could someone get me started on how I might add a radiobuttonlist to one of
the cells and/or rows in a table created in a manner similar to below?

Thanks
Jeff


Dim tr As New TableRow
tr.BorderWidth = 0
tr.BorderColor = Drawing.Color.Blue

For j As Integer = 1 To 10
Dim td As New TableCell
td.Height = 5
td.Width = 5
td.BorderWidth = 1

td.Text = j
td.BackColor = Drawing.Color.DarkCyan

tr.Cells.Add(td)
RBTable.Rows.Add(tr)
Next
 
Jeff said:
Could someone get me started on how I might add a radiobuttonlist to one
of the cells and/or rows in a table created in a manner similar to below?

Thanks
Jeff


Dim tr As New TableRow
tr.BorderWidth = 0
tr.BorderColor = Drawing.Color.Blue

For j As Integer = 1 To 10
Dim td As New TableCell
td.Height = 5
td.Width = 5
td.BorderWidth = 1

td.Text = j
td.BackColor = Drawing.Color.DarkCyan

dim rbt as new rbtcontrol
rbt.name = "myrbutton" // and set other properties
td.Controls.Add(rbt)
tr.Cells.Add(td)
RBTable.Rows.Add(tr)
Next

There is a tr.Controls.Add() as well.
 
Back
Top