Enumerating rows in dynamically generated table

wxdqz

New Member
I am generating a table from the database. What I need is to calculate how many rows in the table and write the number of the row in the first cell of each row. In other words if table has 10 rows (for example) I want the first cell in the first row to display 1., the first cell in the second row to display 2. etc.

Since I am pulling all the data from the database I can't rely on cell's ID or names. Is there any other way? Can anybody help?

Thanks.
 
Back
Top