Check out example codes for "add row count devepxress report". It will help you in understanding the concepts better.

Code Example 1

int counter = 0;
        private void lblCount_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            counter++;
            lblCount.Text = counter.ToString();
        }

Learn ReactJs, React Native from akashmittal.com