Skip to main content

ExpressionBinding Class

Provides functionality to expression bindings.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v22.1.dll


public class ExpressionBinding :


A collection of ExpressionBinding objects is returned by the XRControl.ExpressionBindings property.

You can create a binding expression to specify a control or parameter property. Create a ExpressionBinding object and set its properties:

See Data Binding Modes for more information.

The following code example illustrates how to specify an expression to a control’s property:

// Create a label control.
XRLabel label = new XRLabel();
// Specify an expression that sets the label's Text to the current date. The expression is rendered within the BeforePrint event.
XRLabel.ExpressionBindings.Add (new ExpressionBinding("Text", "TODAY()"));
// Specify an expression that is rendered within the PrintOnPage event.
XRLabel.ExpressionBindings.Add (new ExpressionBinding("PrintOnPage","Font.Bold","true"));



See Also