Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

XtraReportBase.FromDisplayName(String) Method

Obtains the real name of a data field, based on the field’s display name.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v24.2.dll

NuGet Package: DevExpress.Reporting.Core

#Declaration

public string FromDisplayName(
    string displayName
)

#Parameters

Name Type Description
displayName String

A String value.

#Returns

Type Description
String

A String value.

#Example

This example illustrates the use of the XtraReportBase.FromDisplayName method.

private void label1_BeforePrint(object sender, System.ComponentModel.EventArgs e) {
    label1.Text = string.Format("Text : {0}", 
        GetCurrentColumnValue(Report.FromDisplayName("Field Display Name")));
}
See Also