Partilhar via


<Field> Element (.NET Framework Developer's Guide ) 

Represents a field of an ObjectList ASP.NET mobile control. An ObjectListField object can be declared as a <Field> element within the declaration of an ObjectList control.

<Field Name="uniqueName"
   DataField="value"
   DataFormatString="formatString"
   Title="titleText"
   Visible="[True | False]" />

Properties

Property Description

DataField

Sets or returns the name of the property from which to bind data. The default value is an empty string ("").

DataFormatString

Sets or returns the formatting string to use to format the data value. The default value is an empty string ("").

Name

Sets or returns a name for the field. The default value is an empty string ("").

Title

Sets or returns the title used to identify the field. The default value is an empty string ("").

Visible

Sets or returns true if the field is rendered. The default value is true.

Containment Rules

The following controls can contain a <Field> element.

Control Comments

ObjectList

An ObjectList control can contain any number of <Field> elements.

A <Field> element cannot contain any child controls or elements.

See Also

Concepts

Mobile Controls Reference

Other Resources

Element Reference