Export (0) Print
Expand All

ObjectListField Class

Represents a field of an ObjectList ASP.NET mobile control. This class cannot be inherited.

Namespace: System.Web.UI.MobileControls
Assembly: System.Web.Mobile (in system.web.mobile.dll)

public sealed class ObjectListField : IStateManager
public final class ObjectListField implements IStateManager
public final class ObjectListField implements IStateManager

A field is of type ObjectListField. When you want to display multiple fields, you can specify multiple fields for each item in an object list. To create a field within the declaration of an ObjectList, you declare an ObjectListField as a <Field> element. Each field is associated with a property name. When a list item is bound to a data object, each field is bound to the corresponding property of the object.

The ObjectList provides three ways to define a field:

  • Declaratively, by using <Field> child elements within the object list

  • Programmatically, by constructing ObjectListField objects and adding them to the Fields member collection of the control

  • Automatically, by setting the AutoGenerateFields property to true.

For a complete example, see the ObjectList overview.

System.Object
  System.Web.UI.MobileControls.ObjectListField

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1

Community Additions

ADD
Show:
© 2014 Microsoft