Skip to main content

DataLayoutControl.AutoRetrieveFields Property

Gets or sets whether a layout is re-built each time a new value is assigned to the DataLayoutControl.DataSource property.

Namespace: DevExpress.XtraDataLayout

Assembly: DevExpress.XtraLayout.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DefaultValue(false)]
[DXCategory("Behavior")]
public bool AutoRetrieveFields { get; set; }

Property Value

Type Default Description
Boolean false

true if a layout is re-built each time a new value is assigned to the DataLayoutControl.DataSource property; otherwise, false.

Remarks

If the DataLayoutControl.DataSource property is set at runtime, a layout is not automatically generated, since the AutoRetrieveFields property is set to false by default. To generate a layout, either set the AutoRetrieveFields property to true prior to changing the DataLayoutControl.DataSource property, or call the DataLayoutControl.RetrieveFields method after the DataLayoutControl.DataSource property is set.

See Also