All docs
V20.1
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
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.SelectAllValues Property

Gets or sets whether to assign the multi-value parameter's all predefined values to the Value property.

Namespace: DevExpress.XtraReports.Parameters

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

Declaration

[DefaultValue(false)]
public bool SelectAllValues { get; set; }
<DefaultValue(False)>
Public Property SelectAllValues As Boolean

Property Value

Type Default Description
Boolean

false

true, to assign the multi-value parameter's all predefined values to the Value property; otherwise, false.

Remarks

The parameter's all predefined values are assigned to the Value property when you enable SelectAllValues. If the parameter's Visible property is enabled, the Parameters panel displays the parameter's editor with all values selected.

If the Visible property is disabled, all predefined values are submitted to the report.

NOTE

Predefined values are not unassigned from the Value property if you disable SelectAllValues. Assign an empty array to the Value property to unselect all values.

Examples

The code sample below demonstrates how to create a multi-value parameter where predefined values are stored in a data source. The code enables the parameter's SelectAllValues to assign all predefined values to the parameter's Value.

using System;
using System.Windows.Forms;
using DevExpress.XtraReports.Parameters;
// ...

// Create a parameter and specify its name.
Parameter parameter1 = new Parameter();
parameter1.Name = "CategoryIDs";

// Specify other parameter properties.
parameter1.Type = typeof(System.Int32);
parameter1.MultiValue = true;
parameter1.Description = "Categories: ";

DynamicListLookUpSettings lookupSettings = new DynamicListLookUpSettings();
lookupSettings.DataSource = report.DataSource;
lookupSettings.DataMember = "Categories";
lookupSettings.DisplayMember = "CategoryName";
lookupSettings.ValueMember = "CategoryId";

parameter1.LookUpSettings = lookupSettings;
parameter1.Visible = true;
parameter1.SelectAllValues = true;

Implements

DevExpress.Data.IReportMultiValueParameter.SelectAllValues
See Also