postion user control dynamically

S

semesm22

i have a form that acts a layout for a movie theatre....i have created a
user control to represent the seat...the problem is that i am
dynamically creating about 200 of these seats at the page_load
event....i did some research and figured out how to use the LoadControl
method, with the page.Control.Add method with a PlaceHolder.....but now
I am stuck, because the PlaceHolder adds all controls vertically (i.e
one below the other), and i need them in 10 rows of 20......so i have
two questions...one how do i get the PlaceHolder to add the controls
horizontally, and, should i just make 10 different place holders, and
then add a row to each one....or can i create one place holder and
somehow get it to work out so that i get 10 rows of 20 seats


thanks alot in advance
 
S

Steve C. Orr [MVP, MCSD]

I think you should consider creating a table control to keep everything
aligned properly, then you can add your controls to each cell of the table.
 
S

semesm22

the problem steve is that i have several sections that make up the movie
theatre, and each section has a different number of seats, so should i
dynamically create cells along with the user controls, if so, how can i
do that?
 

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