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
In Visual Studio, open or create a new mobile Web page.
Switch to Design view.
From the Mobile Web Forms tab of the Toolbox, drag an ObjectList control into the mobile Form box on the page.
Right-click the ObjectList control and click Show Smart Tag.
The ObjectList Tasks window is displayed.
Click Property Builder.
The ObjectList Properties dialog box is displayed.
Alternatively, you can click the ellipsis button () in the Fields box of the Properties window.
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
Up Arrow
Moves the selected item up one place in the list.
Down Arrow
Moves the selected item down one place in the list.
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.