Back to Devexpress

DataLayoutControl.AutoRetrieveFields Property

windowsforms-devexpress-dot-xtradatalayout-dot-datalayoutcontrol-3979198b.md

latest3.0 KB
Original Source

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

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(false)]
[DXCategory("Behavior")]
public bool AutoRetrieveFields { get; set; }
vb
<DefaultValue(False)>
<DXCategory("Behavior")>
Public Property AutoRetrieveFields As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

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

DataSource

FieldRetrieving

FieldRetrieved

RetrieveFields

Binding to Data Source in Code

Data Annotation Attributes - Building Layout from Business Object

DataLayoutControl Class

DataLayoutControl Members

DevExpress.XtraDataLayout Namespace