If you want to display the line numbers in the groupLineYou need to use system variables. The reference to this variable must be specified in the expression assigned to the text component placed in the group data band.
For example, place a text component in the data band and write the following expression in it:
{Line}
When the report is rendered, each group row displays a numbered list starting with 1.
For each new group in the report, the numbers start again at 1. If you want the number to continue from one group to the next (called "through numbering"), you should use the LineThrough system variable instead. For example, write the following expression in the text component:
{LineThrough ()}
As a result, the line numbers of subsequent groups will continue from the line numbers of the previous group.