Back to Devexpress

CalculatedField.DisplayName Property

xtrareports-devexpress-dot-xtrareports-dot-ui-dot-calculatedfield-d5d7a04f.md

latest3.6 KB
Original Source

CalculatedField.DisplayName Property

Specifies the display name of the calculated field.

Namespace : DevExpress.XtraReports.UI

Assembly : DevExpress.XtraReports.v25.2.dll

NuGet Package : DevExpress.Reporting.Core

Declaration

csharp
[SRCategory(ReportStringId.CatDesign)]
public string DisplayName { get; set; }
vb
<SRCategory(ReportStringId.CatDesign)>
Public Property DisplayName As String

Property Value

TypeDescription
String

A String representing the calculated field’s display name.

|

Remarks

Use the DisplayName property, to specify a calculated field’s display name, which appears in the Field List.

To specify the name by which a calculated field is referred, use the CalculatedField.Name property.

To learn more, refer to Calculated Fields Overview.

For a code example, refer to Creating a Calculated Field (Runtime Sample).

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DisplayName property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

reporting-winforms-calculated-field-runtime/CS/UsingCalculatedFields/Form1.cs#L26

csharp
calcField.FieldType = FieldType.Double;
calcField.DisplayName = "Calculated Field";
calcField.Name = "myField";

reporting-winforms-calculated-field-runtime/VB/UsingCalculatedFields/Form1.vb#L29

vb
calcField.FieldType = FieldType.Double
calcField.DisplayName = "Calculated Field"
calcField.Name = "myField"

See Also

Calculated Fields

Name

CalculatedField Class

CalculatedField Members

DevExpress.XtraReports.UI Namespace