ASP.NET DataGrid web control is one of the simplest way to display the data. This article explains how to add functionality to add a counter column to the DataGrid. In short the article is about displaying the count for each row in the DataGrid .
The solution is as follows.Create a webform with a DataGrid control :
Programming Template in Web Server Controls
Format DateTime Values in XML Extracted From DataSet