Parameter.Value Property

Specifies the report parameter's value.

Namespace: DevExpress.XtraReports.Parameters

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


public object Value { get; set; }
Public Property Value As Object

Property Value

Type Description

The parameter's value.


Use this property to specify a parameter's value.

As an alternative, you can add an item to the ExpressionBindings property to set an expression that specifies the parameter's Value.

Specify the parameter's Type to define the data type the parameter stores and which editor the parameter uses in Print Preview.


The code sample below illustrates how to create a date parameter and filter report data by this 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 in code.
myDateParameter.Visible = false;
myDateParameter.Type = typeof(System.DateTime);
myDateParameter.Value = new DateTime(2019, 1, 1);
// Filter report data by the specified parameter.
report.FilterString = "GetDate([OrderDate]) >= ?myDateParameter";


See Also