Click here to Skip to main content
13,868,158 members
Rate this:
 
Please Sign up or sign in to 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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web06 | 2.8.190214.1 | Last Updated 8 Dec 2018
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100