Click here to Skip to main content
13,804,094 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

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
Web05 | 2.8.181218.1 | Last Updated 8 Dec 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

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