Tuesday, April 5, 2011

Count column in GridView

Sometime , You want to add a column to show the count of records in a gridview. It is simple,
just add a templatefield and add this in :
<ItemTemplate>
<%# Container.DataItemIndex + 1 %>
</ItemTemplate>


No comments: