Inserting Radio Button into table

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
 
D

DArnold

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.
 

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

Top