List Controls

List controls covered in this section all inherit directly or indirectly from TListControl. Therefore, they share the same set of commonly used properties, including,

Since TListControl inherits from TDataBoundControl, these list controls also share a common operation known as databinding. The data to be bound can be specified via either DataSource or DataSourceID. More details about databinding are covered in later chapters of this tutorial.

TListBox

TListBox displays a list box that allows single or multiple selection. Set the property SelectionMode as Single to make a single selection list box, and Multiple a multiple selection list box. The items in the list box are represented by the Items property. The number of rows displayed in the box is specified via the Rows property value.

TDropDownList

TDropDownList displays a dropdown list box that allows users to select a single option from a few prespecified ones. The items in the list box are represented by the Items property. The selected item can be retrieved via SelectedItem property. If AutoPostBack is true, selection change will cause page postback.

TCheckBoxList

TRadioButtonList

TBulletList