The requested page is not available for the requested platform. You are viewing the content for Default platform.

XtraReportBase.GetPreviousColumnValue(String) Method

Gets the previous value of the specified column in the report's XtraReportBase.DataSource.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v19.2.dll


public object GetPreviousColumnValue(
    string columnName
Public Function GetPreviousColumnValue(
    columnName As String
) As Object


Name Type Description
columnName String

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


Type Description

An object which represents 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).


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

To avoid casting the object returned by this method to an appropriate type, use the XtraReportBase.GetPreviousColumnValue<T> method, which returns a strongly typed object.

See Also