System.Web.UI.WebControls Namespace
Serves as the abstract base class that defines the properties, methods, and events common to all selectable list-type controls.
Visibility |
Constructor |
Parameters |
public |
ListControl |
( )
|
Visibility |
Name |
Value Type |
Accessibility |
public |
AppendDataBoundItems
|
Boolean |
[ Get , Set ] |
public |
AutoPostBack
|
Boolean |
[ Get , Set ] |
public |
CausesValidation
|
Boolean |
[ Get , Set ] |
public |
DataTextField
|
String |
[ Get , Set ] |
public |
DataTextFormatString
|
String |
[ Get , Set ] |
public |
DataValueField
|
String |
[ Get , Set ] |
public |
Items
|
ListItemCollection |
[ Get ] |
public |
SelectedIndex
|
Int32 |
[ Get , Set ] |
public |
SelectedItem
|
ListItem |
[ Get ] |
public |
SelectedValue
|
String |
[ Get , Set ] |
public |
Text
|
String |
[ Get , Set ] |
public |
ValidationGroup
|
String |
[ Get , Set ] |
|
The ListControl class provides the common base functionality inherited by list controls that are derived from this class. Classes that derive from ListControl include the CheckBoxList, DropDownList, ListBox, and RadioButtonList classes.
The ListControl class allows you to specify the source of the data to populate the list control.
Options in a ListControl object are indexed in the order in which they are defined, starting with an index of zero.
CheckBoxList DropDownList ListBox RadioButtonList