Dynamically loading check box controls horizontally

  • Thread starter Thread starter Stuart Miller
  • Start date Start date
S

Stuart Miller

How can you do this using the placeholder control? When I call the
add method, the check boxes show up, but they are displayed
vertically. Should I be using the literal control? Any help would be
appreciated.

Stuart Miller
 
Make sure the width of the placeholder is larger than the controls you want
to add.

For example, if you would like to add 3 checkboxes that are 50px wide, your
placeholder should be set to be at least 151px. If it's not, the palce
holder will automatically grow down, not wide.

Steve
 
Thank you for your response. I looked into this, but there is no
property for "Width" in the Placeholder control. How would I adjust
the width?
 
Sorry about that. I only ever use the panel control. If you don't have a
compelling reason to use the placeholder for dynamic controls, try the panel
control. (At least you can set it's width)

Steve
 
Thank you for your post. This appears to work like I want it to. The
CheckBoxList has a RepeatDirection property which allows the controls
to be rendered left to right. Most usefull.
 
Back
Top