ExpressionBinding.EventName Property

Specifies the name of the event to evaluate the expression binding within.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v20.2.dll

Declaration

[DefaultValue("")]
public string EventName { get; set; }
<DefaultValue("")>
Public Property EventName As String

Property Value

Type Default Description
String

String.Empty

The event name.

Remarks

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