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.v18.1.dll

Syntax

public string FromDisplayName(
    string displayName
)

Parameters

Type Name Description
String displayName

A String value.

Returns

Type Description
String

A String value.

Examples

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

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