XRBinding.Create(String, Object, String, String) Method

Creates a new data binding object with the specified property name, data source, data member and format string.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v18.2.dll


public static XRBinding Create(
    string propertyName,
    object dataSource,
    string dataMember,
    string formatString
Public Shared Function Create(
    propertyName As String,
    dataSource As Object,
    dataMember As String,
    formatString As String
) As XRBinding


Type Name Description
String propertyName

A String value specifying a control's property name to bind to a data field. This value is assigned to the XRBinding.PropertyName property.

Object dataSource

A Object class descendant, which specifies a data source to provide data for a control's property. This value is assigned to the XRBinding.DataSource property.

String dataMember

A String value, which specifies a navigation path to a data field in a data source. This value is assigned to the XRBinding.DataMember property.

String formatString

A String value specifying a format for the output value. This value is assigned to the XRBinding.FormatString property.


Type Description

A new XRBinding instance.

To learn which objects can be passed as a dataSource parameter to this constructor, refer to the Quick Guide to Report Data Binding document.

See Also