Skip to main content

XtraReportBase.GetNextColumnValue(String) Method

Gets the value of the specified column in the row that follows the current row in the report data source.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v23.2.dll

NuGet Package: DevExpress.Reporting.Core

Declaration

public object GetNextColumnValue(
    string columnName
)

Parameters

Name Type Description
columnName String

A String that is the name of the data column.

Returns

Type Description
Object

A value in the specified data source column. If the specified column is not found, this method returns null (Nothing in Visual Basic). If the current row is the last row (CurrentRowIndex == RowCount - 1), the method returns a value of the current (last) record.

Remarks

You can use this method in the BeforePrint event handler of a report control to retrieve values of bound data while the report document is being built and the report iterates over the bound data source.

The following methods allow you to get values contained in the current, next, and previous data row of the report data source:

Alternatively, you can use generic methods:

See Also