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

XtraReportBase.GetPreviousColumnValue<T>(String) Method

Gets the previous value (strongly typed) of the specified column in the report’s XtraReportBase.DataSource.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v18.2.dll

Declaration

public T GetPreviousColumnValue<T>(
    string columnName
)

Parameters

Name Type Description
columnName String

A String, specifying the name of the column whose value to be obtained.

Type Parameters

Name
T

Returns

Type Description
T

A <T> object that corresponds to the previous value of the specified column in the data source. If the specified column was not found, this method returns null (Nothing in Visual Basic).

Remarks

Use the GetPreviousColumnValue<T>, XtraReportBase.GetCurrentColumnValue<T> and XtraReportBase.GetNextColumnValue<T> methods to determine the value of the specified data column when creating a report, for example, in the XRControl.BeforePrint event handler.

See Also