This topic is locked
[SOLVED]

 Showing ItemIndex column

1/13/2016 11:38:48 AM
ASPRunner.NET General questions
C
ccvvccc author

Hi guys,
Does anybody know how to show ItemIndex in a list page?
Example:

1 Apple

2 Cherry

3 Watermelon
Note: I dont want to show PKID or any other column. I want to add ItemIndex column additionally. In other words, I want to show the row number.(index of row)
Yes, I basically just want to show a number for each ROW. It doesnt matter after sorting. For example. there are 10 rows in the table and It should be from 1,2,3,4,5,6,7,8,10 in the first columns of the rows.
Actually, I will be happy for one the scenarios below..
Scenario 1: 1 Adams , 2 Zebra , 3 Monkey . Some kind of sort. Then -> 1 Zebra , 2 Monkey, 3 Adams.

Scenario 2: 1 Adams , 2 Zebra , 3 Monkey . Some kind of sort. Then -> 2 Zebra , 3 Monkey, 1 Adams.
I dont care very much after sorting.. But if you can give a solution for "after sorting" as well, it will be perfect for me and other members of the forum...
Thanks for help.

Sergey Kornilov admin 1/15/2016
C
ccvvccc author 1/16/2016



Here is the article that explain how to do that:

http://www.asprunner.com/forums/topic/23589-how-to-display-record-number-in-each-row/


That is what I was exactly looking for. Thanks for help.