I have a long list of checkboxes bound in a repeater is there a way of wrapping them so instead of having 1 long list wrapping it across 3 or 4 colouns side by side say 7 items long.
Is it easier 开发者_如何学Goto do this with a repeater or a Datalist?
Cheers
Ste
It looks like you need to use one of the repeating controls like the DataList control that has a RepeatDirection property:
MyDataList.RepeatDirection = RepeatDirection.Horizontal
Or, you can play around with the HTML markup in the ItemTemplate of the Repeater control. See here for possible clues on this.
If you truly only need a list of check boxes why not use a CheckBoxList and set the RepeatColumns and RepeatDirection properties.
精彩评论