Breaking News

Tuesday, July 6, 2010

ASP.NET: Add serial number column in GridView

ASP.NET: Add a serial number in GridView
1. Add a template field tag in your GridView markup
2. Add Container.DataItemIndex + 1 code
3. Enjoy



<%#Container.DataItemIndex+1 %>



Happy coding!

No comments:

Post a Comment

Designed By Published.. Blogger Templates