| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CheckBoxList ClassSystem.Web.UI.WebControls Namespace Renders a group of CheckBox controls.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Visibility | Name | Value Type | Accessibility |
|---|---|---|---|
| public | CellPadding | Int32 | [ Get , Set ] |
| public | CellSpacing | Int32 | [ Get , Set ] |
| public | RepeatColumns | Int32 | [ Get , Set ] |
| public | RepeatDirection | RepeatDirection | [ Get , Set ] |
| public | RepeatLayout | RepeatLayout | [ Get , Set ] |
| public | TextAlign | TextAlign | [ Get , Set ] |
| 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 |
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.
Check out related books at Amazon
© 2000-2008 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 aspxtreme