xtrareports-devexpress-dot-xtrareports-dot-ui-dot-calculatedfield-d5d7a04f.md
Specifies the display name of the calculated field.
Namespace : DevExpress.XtraReports.UI
Assembly : DevExpress.XtraReports.v25.2.dll
NuGet Package : DevExpress.Reporting.Core
[SRCategory(ReportStringId.CatDesign)]
public string DisplayName { get; set; }
<SRCategory(ReportStringId.CatDesign)>
Public Property DisplayName As String
| Type | Description |
|---|---|
| String |
A String representing the calculated field’s display name.
|
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
calcField.FieldType = FieldType.Double;
calcField.DisplayName = "Calculated Field";
calcField.Name = "myField";
reporting-winforms-calculated-field-runtime/VB/UsingCalculatedFields/Form1.vb#L29
calcField.FieldType = FieldType.Double
calcField.DisplayName = "Calculated Field"
calcField.Name = "myField"
See Also