Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.2.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