Skip to main content
A newer version of this page is available. .

DataLayoutControl.RetrieveFields(RetrieveFieldsParameters) Method

Creates layout items for all public fields in the bound data source and allows you to customize general binding and layout settings.

Namespace: DevExpress.XtraDataLayout

Assembly: DevExpress.XtraLayout.v19.1.dll

Declaration

public virtual void RetrieveFields(
    RetrieveFieldsParameters parameters
)

Parameters

Name Type Description
parameters RetrieveFieldsParameters

An object that provides additional binding and layout customization options.

Remarks

This overload does all the actions performed by the DataLayoutControl.RetrieveFields method overload with no parameters. In addition, it allows you to customize general binding and layout settings using the parameters parameter.

RetrieveFieldsParameters.DataSourceUpdateMode

Gets or sets the default value used to initialize the Binding.DataSourceUpdateMode property for all auto-generated editors. This property indicates when changes to the bound editor property are propagated to the data source.

RetrieveFieldsParameters.DataSourceNullValue

Gets or sets the default value used to initialize the Binding.DataSourceNullValue property for all auto-generated editors. This property identifies the value to be stored in the data source if the editor’s value is null or empty.

RetrieveFieldsParameters.ColumnCount

Gets or sets the number of columns in the layout that will be generated.

For information on customizing binding and layout settings during layout generation, see Binding to Data Source in Code.

To learn how to customize an existing layout, see Customizing a Layout In Code.

See Also