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

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.2.dll

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.Drawing.Printing.PrintEventArgs e) {
    label1.Text = string.Format("Text : {0}", 
        GetCurrentColumnValue(Report.FromDisplayName("Field Display Name")));
}
See Also