Skip to main content

Parameter.AllowNull Property

Specifies whether to treat an empty field as null.

Namespace: DevExpress.XtraReports.Parameters

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

NuGet Package: DevExpress.Printing.Core

#Declaration

[DefaultValue(false)]
public bool AllowNull { get; set; }

#Property Value

Type Default Description
Boolean false

true, to treat an empty field as null; otherwise, treat an empty field as string.empty.

#Remarks

The AllowNull option determines whether to treat an empty field as null or as string.empty (or as an empty array for the multi-value parameter).

Empty editor of a date parameter

using DevExpress.XtraReports.Parameters;
// ...
report.Parameters["date"].AllowNull = true;
See Also