asp.net.ph

CheckBoxList.RepeatColumns Property

System.Web.UI.WebControls Namespace   CheckBoxList Class


Sets or retrieves the number of columns to display in a CheckBoxList control.

Syntax


Inline <asp:checkboxlist repeatcolumns = intSize ... >
Script CheckBoxList.RepeatColumns = intSize

Property Value


intSize The number of columns to display in the CheckBoxList control.

The property is read/write with a default value of 1.

Exceptions


Exception Type Condition
ArgumentOutOfRangeException The given number of columns is set to a negative value.

Remarks

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.

See Also

CheckBoxList Members   RepeatDirection   RepeatLayout Skip Navigation Links




Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note