Skip to main content
A newer version of this page is available. .

CalculatedField.Name Property

Gets or sets the calculated field‘s name.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v19.1.dll

NuGet Packages: DevExpress.Reporting.Core, DevExpress.WindowsDesktop.Core

Declaration

[Browsable(false)]
[DefaultValue("")]
public string Name { get; set; }

Property Value

Type Default Description
String String.Empty

A String that specifies the calculated field’s name.

Remarks

You can use the Name property at runtime to evaluate an object by its name rather than type or programmatic name. The Name property returns a String value and can be evaluated in case-style logic statements (switch statement in C#, Select statement in Visual Basic).

Note

To avoid invalid report serialization, the Name property value should not contain any reserved .NET words, library names or the XtraReport class’s property names (DataSource, Version, etc.)

To specify a calculated field’s display name (which appears in the Field List), use the CalculatedField.DisplayName property.

See Calculated Fields Overview for more information.

Refer to Create a Calculated Field (Runtime Sample) for a code example.

See Also