|
Set ds.defaultview.sort = "total score"&"desc"
In the OnRowDataBound process, put the total score into a viewstate,
When the next row is generated, the total score is compared with the viewstate. If they are the same, the ranking is the same as the value of rows (e.rowindex-1).
If they are not the same, add 1 to the ranking, and finally overwrite the total score of the new line with viewstate |
|