All docs
V20.2
20.2
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

Parameter.ExpressionBindings Property

Provides access to the parameter's expression bindings collection.

Namespace: DevExpress.XtraReports.Parameters

Assembly: DevExpress.Printing.v20.2.Core.dll

Declaration

[Browsable(false)]
public BasicExpressionBindingCollection ExpressionBindings { get; }
<Browsable(False)>
Public ReadOnly Property ExpressionBindings As BasicExpressionBindingCollection

Property Value

Type Description
BasicExpressionBindingCollection

The parameter's expression bindings collection.

Remarks

The collection to which ExpressionBindings provides access stores BasicExpressionBinding elements for Parameter's properties. An expression that is parsed and processed to specify a property value:

A property's expression binding overrides the PropertyName's value. Invalid values (for instance, an alphabetical value for an integer parameter) are converted to zero or empty values.

TIP

A basic expression binding's visibility scope is limited to constants, operators and basic functions.

Examples

The code sample below illustrates how to create a date parameter with the current date as the default value and filter report data by the created parameter.

using DevExpress.XtraReports.Parameters;
using DevExpress.XtraReports.Expressions;
// ...
XtraReport1 report = new XtraReport1();

Parameter myDateParameter = new Parameter();
myDateParameter.Name = "myDateParameter";
// Set the Visible property to true to request the parameter value from users.
// Set this property to false to assign the parameter's value that is specified in code.
myDateParameter.Visible = false;
myDateParameter.Type = typeof(System.DateTime);
// Set the parameter's value to the current date.
myDateParameter.ExpressionBindings.Add(new BasicExpressionBinding("Value", "Today()"));
report.Parameters.Add(myDateParameter);
// Filter report data by the specified parameter.
report.FilterString = "GetDate([OrderDate]) = ?myDateParameter";
See Also