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

DataLayoutControl.GetLayoutElementsBindingsInfo() Method

Returns information on the layout column count and binding settings of public properties in the data source.

Namespace: DevExpress.XtraDataLayout

Assembly: DevExpress.XtraLayout.v19.1.dll

Declaration

public virtual LayoutElementsBindingInfo GetLayoutElementsBindingsInfo()

Returns

Type Description
DevExpress.XtraDataLayout.LayoutElementsBindingInfo

A value that specifies information on layout element binding settings.

Remarks

When you bind the DataLayoutControl to a specific data source using the DataLayoutControl.DataSource property, the control obtains information on available public properties in the bound data source and automatically builds a layout with appropriate editors.

To obtain the layout column count and binding settings of all public properties in the bound object, use the GetLayoutElementsBindingsInfo method.

Binding settings for all auto-generated layout items and the layout column count can be customized using the DataLayoutControl.RetrieveFields method and DataLayoutControl.FieldRetrieving event.

You can apply specific Data Annotation attributes to a business object bound to a Data Layout control. The Data Layout control will use these attributes to build a layout and adjust item settings. See the Binding to Data Source in Code and Data Annotation Attributes - Building Layout from Business Object topics for more information.

See Also