Back to Devexpress

Parameter.AllowNull Property

corelibraries-devexpress-dot-xtrareports-dot-parameters-dot-parameter-a15b4748.md

latest1.7 KB
Original Source

Parameter.AllowNull Property

Specifies whether to treat an empty field as null.

Namespace : DevExpress.XtraReports.Parameters

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

NuGet Package : DevExpress.Printing.Core

Declaration

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

Property Value

TypeDefaultDescription
Booleanfalse

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).

csharp
using DevExpress.XtraReports.Parameters;
// ...
report.Parameters["date"].AllowNull = true;
vb
Imports DevExpress.XtraReports.Parameters
' ...
report.Parameters("date").AllowNull = True

See Also

Parameter Class

Parameter Members

DevExpress.XtraReports.Parameters Namespace