|
|
Here’s a simple way to add a Row Number to the GridView. Just add the following tags to your <columns> section of your GridView
<Columns>
<asp:TemplateField HeaderText="RowNumber">
<ItemTemplate>
<%# Container.DataItemIndex + 1 %>
</ItemTemplate>
</asp:TemplateField>
...
</Columns>
and you will get the following output
'Like' us on our FaceBook page if you find this blog useful. Thanks!
Did you like this post?
|
|
|
||
|
|
|
|
Save on Delicious |
|
|
subscribe via rss |
|
subscribe via e-mail |
|
|
print this post |
|
follow me on twitter |





comments
3 Responses to "Add a Row Number to the GridView"Thanx buddy...simple and best
Thank you...! :D
Thank you it works fine
Post a Comment