How to: Add CheckBoxList Web Server Controls to a Web Forms Page (Visual Studio)
When you use a CheckBoxList control, you add a single control to the page. Adding items to the control is a separate process that depends on whether you will display a static list in the control or display a list that is generated dynamically at run time. For details, see How to: Add Items in List Web Server Controls (Visual Studio).
To add a CheckBoxList Web server control to a Web Forms page
-
From the Standard tab of the Toolbox, drag a CheckBoxList control onto the page.
-
Optionally, in the Appearance category of the Properties window, change the orientation of the check box label by setting the TextAlign property.
-
Optionally, change the layout of the control to display multiple columns. For details, see How to: Set Layout in a CheckBoxList Web Server Control.
-
Create items for the control in one of the following ways:
-
By creating each item individually. For details, see How to: Add Items in List Web Server Controls (Visual Studio).
-
By binding data to the control. For details, see How to: Populate List Web Server Controls from a Data Source (Visual Studio).
-