XtraReportBase.GetCurrentColumnValue<T>(String) Method

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

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v18.2.dll


public T GetCurrentColumnValue<T>(
    string columnName
Public Function GetCurrentColumnValue(Of T)(
    columnName As String
) As T


Type Name Description
String columnName

A String value, specifying the column name.


Type Description

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

Type Parameters

Name Description

Use the GetCurrentColumnValue<T>, XtraReportBase.GetPreviousColumnValue<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