Back to Devexpress

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

xtrareports-devexpress-dot-xtrareports-dot-ui-dot-xrbinding-dot-create-x28-system-dot-string-system-dot-object-system-dot-string-system-dot-string-x29.md

latest3.3 KB
Original Source

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

NuGet Package : DevExpress.Reporting.Core

Declaration

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

Parameters

NameTypeDescription
propertyNameString

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

| | dataSource | Object |

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.

| | dataMember | String |

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.

| | formatString | String |

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

|

Returns

TypeDescription
XRBinding

A new XRBinding instance.

|

Remarks

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

Bind Report Controls to Data Using Expression Bindings

XRBinding Class

XRBinding Members

DevExpress.XtraReports.UI Namespace