Skip to main content

DataAwareEventArgsBase.DataSourceRowIndex Property

Gets the data source row index to which the current cell belongs.

Namespace: DevExpress.Export

Assembly: DevExpress.Printing.v24.1.Core.dll

NuGet Package: DevExpress.Printing.Core

Declaration

public int DataSourceRowIndex { get; set; }

Property Value

Type Description
Int32

A zero-based index of the current row in the underlying data source.

Remarks

You can use methods of your data source to get data from the currently processed row, identified by the DataSourceRowIndex property.

For a GridControl, you can obtain cell values from the data source with the ColumnView.GetListSourceRowCellValue method. The first parameter of this method accepts a data source row index (the DataSourceRowIndex property). The second parameter accepts either a column object or field name (the CustomizeCellEventArgsBase.ColumnFieldName property).

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DataSourceRowIndex property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also