By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,932 Members | 1,452 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,932 IT Pros & Developers. It's quick & easy.

How can I set the column width for a CheckBoxList control?

P: n/a
I have a repeater that renders multiple checkboxlists that are set up with a
repeat direction of horizontal. Because the labels for each checkbox are
different in length only the individual checkboxlist items are aligned
nicely, however when looking at the multiple checkboxlists, it'd be nice to
have everything align nicely. Is there a way that I can set the with of the
columns for the checkboxlist? I tried adding an attribute such as,,
myCheckboxList.Attributes.Add("width", "150");
however this attribute gets added to the checkboxlist itself rather than
the individual <td>'s that are within it that house the individual checkbox
label and checkbox.

Any help would be greatly appreciated!
Sep 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.