asp.net.ph

CheckBoxList Class

System.Web.UI.WebControls Namespace


Renders a group of CheckBox controls.

CheckBoxList Class Members

Collapse   Constructors

Visibility Constructor Parameters
public CheckBoxList ( )

Collapse   Properties

Visibility Name Value Type Accessibility
public CellPadding Int32 [ Get , Set ]
public CellSpacing Int32 [ Get , Set ]
public RenderWhenDataEmpty Boolean [ Get , Set ]
public RepeatColumns Int32 [ Get , Set ]
public RepeatDirection RepeatDirection [ Get , Set ]
public RepeatLayout RepeatLayout [ Get , Set ]
public TextAlign TextAlign [ Get , Set ]

Collapse   Methods

Visibility Name Parameters Return Type
protected CreateControlStyle ( ) Style
protected FindControl ( String id , Int32 pathOffset ) Control
protected GetItemStyle ( ListItemType itemType , Int32 repeatIndex ) Style
protected LoadPostData ( String postDataKey , NameValueCollection postCollection ) Boolean
protected RaisePostDataChangedEvent ( ) Void
protected RenderItem ( ListItemType itemType , Int32 repeatIndex , RepeatInfo repeatInfo , HtmlTextWriter writer ) Void

Remarks

The CheckBoxList control provides a multi selection check box group that can be dynamically generated with data binding. It contains an Items collection with members that correspond to individual items in the list. To determine which items are checked, loop through and test the Selected property of each item in the list.

You can specify the way the list is displayed by using the RepeatLayout and RepeatDirection properties.

The CheckBoxList control provides convenient data binding capabilities. Individual CheckBox controls, though, provide greater control over layout.

For examples illustrating use of this control, see the individual member types of this class. For syntax information, see CheckBoxList in ASP.NET Syntax for Web Controls.

See Also

ListControl   RadioButtonList Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

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

You can help support asp.net.ph