Reputation: 47
I am using a ListView to populate data and I would like to add a column that will number the rows. Is there a way to do it?
Upvotes: 0
Views: 307
Reputation: 156
You can get the row number from the item index.
<td> <%# Container.DataItemIndex + 1%> </td>
Upvotes: 3