Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i want to define rows to be display as per define limit of rows in Gridview.

What I have tried:

<Columns>
            <asp:TemplateField HeaderText = "Row Number" ItemStyle-Width="100">
       <ItemTemplate>
           <asp:Label ID="lblRowNumber" Text='<%# Container.DataItemIndex + 1   %>' runat="server" />
       </ItemTemplate>
Posted
Comments
Simon_Whale 23-Dec-18 6:04am    
are you thinking about the number of rows in a page? i.e if you have a 71 rows to display page 1 will show 1 - 50 and page 2 will show 51 - 71?
Member 12314309 25-Dec-18 1:53am    
i have gridview in which employee IN and OUT is coming ,now i want that gridview row auto add as per daily date extend for each employee id

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900