|
Author: Jenny Nguyen
|
|
How to limit number of checkbox items to display per row with CheckBoxList. Sometimes you might want to display 2 checks box item per row so that you could align the checkbox items properly on the screen. Here's how:
- You could also specify it via the property value in the aspx page. <asp:checkboxlist id="cblSample" repeatcolumns="2" repeatlayout="flow" runat="server" RepeatDirection="Horizontal" width="700px"> <asp:ListItem>Item 1</asp:ListItem> <asp:ListItem>Item 2</asp:ListItem> <asp:ListItem>Item 3</asp:ListItem> <asp:ListItem>Item 4</asp:ListItem> <asp:ListItem>Item 5</asp:ListItem> <asp:ListItem>Item 6</asp:ListItem> </asp:checkboxlist>
|
http://mindstick.com/Articles/75f78330-82ff-4989-b06b-2975933209a7/?Ch eckBoxList%20Control%20in%20ASP.Net
Thanks