RowNumber Function (Visual Studio Report Designer)

Returns a running count of all rows in the specified scope.

RowNumber(Scope)

Parameters

  • Scope
    (String) The name of a data table, object, grouping, or data region that contains the report items to which to apply the aggregate function. If a data table or object is specified, the running value is not reset throughout the entire dataset. If a grouping is specified, the running value is reset when the group expression changes. If a data region is specified, the running value is reset for each new instance of the data region. For more information about the Scope parameter, see Built-in Functions for Reports (Visual Studio Report Designer).

Return Type

Returns an Integer.

Example

The following code example provides a running count of rows in the outermost data region.

RowNumber(Nothing)

See Also

Concepts

Using Expressions in a Report (Visual Studio Report Designer)
Adding Custom Code to a Report (Visual Studio Report Designer)
ReportViewer Controls (Visual Studio)
Built-in Functions for Reports (Visual Studio Report Designer)