XtraReportBase.GetPreviousColumnValue<T>(String) Method
Gets the previous value (strongly typed) of the specified column in the report’s data source.
Namespace: DevExpress.XtraReports.UI
Assembly: DevExpress.XtraReports.v24.2.dll
NuGet Package: DevExpress.Reporting.Core
Declaration
Parameters
Name | Type | Description |
---|---|---|
columnName | String | A String that is the name of the column whose value you want to retrieve. |
Type Parameters
Name | Description |
---|---|
T | A type of the object to retrieve. |
Returns
Type | Description |
---|---|
T | An object of the specified type that is the previous value of the specified column in the data source. If the specified column is not found, this method returns null (Nothing in Visual Basic). |
Remarks
Use the GetPreviousColumnValue
method to retrieve the value of the specified data column. You can call this method in the XRControl.BeforePrint event handler.
When the current row is the first row (CurrentRowIndex == 0
), this method returns the value of the first record.