How to: Add and Configure a SelectionList Control
Use a SelectionList control to display a selectable list of items.
Note
The appearance of a SelectionList control varies widely, depending on the type of list chosen and the display capabilities of the device being used to browse the application.
To add a SelectionList control to an ASP.NET mobile Web Forms page
Drag a SelectionList control from the Mobile Web Forms tab of the Toolbox onto a Form or Panel control, or inside a control's template on a mobile Web page. You can also drag it onto a mobile user control page.
In the Properties window, use the drop-down list next to the SelectType property to choose the type of SelectionList to use.
Optionally add items to the list by clicking the ellipsis button () in the Items property and entering the items with the SelectionList Properties dialog box.
Optionally add items to the list through data binding using the DataMember, DataSource, DataTextField, and DataValueField properties.
If needed, set the appearance of the SelectionList control with the Alignment, Font, ForeColor, and StyleReference properties in the Properties window.
Configure the appearance of the SelectionList control for specific devices as needed using these steps:
Apply device filters by clicking the ellipsis button in the AppliedDeviceFilters box, which displays the Applied Device Filters dialog box.
Click the ellipsis button in the PropertyOverrides in the Properties box, which displays the Property Overrides dialog box to set property values for specific types of devices.
To change an item on a SelectionList control
Click the ellipsis button in the Items property, which displays the SelectionList Properties dialog box.
Select the item that you want to change.
Press F2 or click the item. Either of these actions makes the item editable.
Type the new text for that item and press ENTER.
See Also
Reference
Concepts
Introduction to the SelectionList Control
Introduction to the Form Control
Introduction to the Panel Control
Introduction to the ObjectList Control
Using Data Binding with ASP.NET Mobile Controls