System.Web.UI.WebControls Namespace CheckBoxList Class
Sets or retrieves the number of columns to display in a CheckBoxList control.
Inline |
<asp:checkboxlist repeatcolumns = intSize ... > |
Script |
CheckBoxList.RepeatColumns = intSize |
intSize |
The number of columns to display in the CheckBoxList control. |
The property is read/write with a default value of 1.
Use this property to specify the number of columns in which to display the items in the CheckBoxList control. For example, if you set this property to 3, the CheckBoxList displays its items in three columns.
NOTE: If this property is set to 0, the CheckBoxList displays its items in a single row or column, based on the value of the RepeatDirection property. If RepeatDirection is not set, or is set to Vertical, the items are displayed in a single column. If RepeatDirection is set to Horizontal, the items are displayed in a single row.
CheckBoxList Members RepeatDirection RepeatLayout