adding a control to a cell in table

N

nemesis.saurabh

hi,
i am adding a user control to a table of size 3x3 on runtime.

tabSec.Rows[0].Cells[1].Controls.Add(HtmlPlaceholderControl3);

but it is throwing an exception : property index out of range
regards,
saurabh
 
N

nemesis.saurabh

tabSec is a normal table....
can say...

table.Rows[0].Cells[1].Controls.Add(controlname);
 
B

Bruno Alexandre

I did never work with that...

as a lot of peoples used to say: "There is a lot ways to kill a fly"

use Panels instead, and on runtime show/hide the panel you want, and you can
put as many controls you like on one panel... for your example, build 2
panels, one with the table without the control, and other with it...
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top