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.v20.1.dll

Declaration

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

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