Fields, ObjectList Properties Dialog Box 

Use the Fields page of the ObjectList Properties dialog box to set field names and associate them with the items in the System.Web.UI.MobileControls.ObjectList control.

To access this dialog box

  1. In Visual Studio, open or create a new mobile Web page.

  2. Switch to Design view.

  3. From the Mobile Web Forms tab of the Toolbox, drag an ObjectList control into the mobile Form box on the page.

  4. Right-click the ObjectList control and click Show Smart Tag.

    The ObjectList Tasks window is displayed.

  5. Click Property Builder.

    The ObjectList Properties dialog box is displayed.

    Alternatively, you can click the ellipsis button (ASP.NET Mobile Designer ellipse) in the Fields box of the Properties window.

  6. Click the Fields tab.

Tasks

UI Elements

  • Create fields automatically at run time
    Select this check box to set the ObjectList control's AutoGenerateFields property to true, and clear it to set the property to false.

Field list

  • Field Name
    Lists the fields that you have defined for the object list.
  • Create New Field
    Click to add a new field to the list. A text box that contains a default field name appears. You can replace the default name by typing in the text box.

    Button Name What it does
    Move Upward Button

    Up Arrow

    Moves the selected item up one place in the list.

    Down Arrow Button

    Down Arrow

    Moves the selected item down one place in the list.

    DeleteButton screenshot

    Delete

    Deletes the currently selected item.

  • DataField
    Select the DataSource object that corresponds to the selected ObjectList control field. This option is unavailable until you select a field name.
  • DataFormatString
    Enter the string format for the data. This option is unavailable until you select a field name.
  • Title
    Enter a title for this field to display in the object list. This option is unavailable until you select a field name.
  • Visible
    Select the check box if you want this field to appear, and clear it to prevent the field from rendering. This option is unavailable until you select a valid field name.

See Also

Tasks

How to: Add and Configure an ObjectList Control

Reference

SelectionList Properties Dialog Box
List Properties Dialog Box
ObjectList Properties Dialog Box
General, ObjectList Properties Dialog Box
Commands, ObjectList Properties Dialog Box
System.Web.UI.MobileControls.ObjectList

Concepts

Introduction to the ObjectList Control
Using Data Binding with ASP.NET Mobile Controls
ASP.NET Device Filtering Overview
ASP.NET Mobile Application Development Overview

Other Resources

Developing Adapters for ASP.NET Server Controls