Edit

Share via


ObjectList.AutoGenerateFields Property

Definition

Specifies whether fields must be automatically generated from data. When enabled, each public property of the data becomes a field of the control. The default value is true. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

public:
 property bool AutoGenerateFields { bool get(); void set(bool value); };
[System.ComponentModel.Bindable(false)]
[System.ComponentModel.Browsable(true)]
public bool AutoGenerateFields { get; set; }
[<System.ComponentModel.Bindable(false)>]
[<System.ComponentModel.Browsable(true)>]
member this.AutoGenerateFields : bool with get, set
Public Property AutoGenerateFields As Boolean

Property Value

true if the fields are automatically generated from data; otherwise, false.

Attributes

Remarks

When true, the object list handles the fields order in the ObjectListFieldCollection collection. When false, you must specify the order of the fields and set the DataItem property to bind to a data source.

Applies to