VisualBuilder
  Home > Aspnet > Tutorials > Paging of data grid - ASP.NET Development Tips
Tell a friend
Link to us
Total Members
      Members: 84672
     
Sitemap Forum Chat
Home
ASP.NET Development Tips Tutorial Home
1 . Introduction
2 . Select the right project
3 . Envision the project goal
4 . Chalk a plan for development
5 . Extract multiple resultsets from the Datareader
6 . Paging of data grid
7 . Exploit ASP.NET cache page.
8 . Use connection pool
9 . Per-request caching
10 . Process the background
11 . Caching page output and proxy server
12 . Running IIS 6.0
13 . Gzip compression
14 . Use View State
15 . Use authentic SQL connections
16 . Memory limit for Application pool
17 . ASP deployment architecture
18 . Encrypt the sensitive portions
19 . Prepare a reference release version
 
 
ASP.NET Home
ASP.NET Members (2411)
ASP.NET Member Articles ( 15 )
ASP.NET Discussion (11)
ASP.NET Q & A ( 119 )
- ASP.NET Ask Question
- ASP.NET Questions
- ASP.NET Unanswered Questions
ASP.NET Resources
ASP.NET Source Code (388)
ASP.NET Articles (514)
ASP.NET Blogs (2509)
ASP.NET Jobs (0)
ASP.NET Components (205)
ASP.NET Books (8)
ASP.NET Websites (21)
ASP.NET News (106)
 
GROUPS
.NET
ASP.NET
.NET
C#
ASP
Visual Basic
Java
Java
JSP
EJB
Other
Delphi
C++
Ajax
UML
JavaScript
PHP
Web Design
Web Hosting
SQL Server
Oracle
Project Management
More Groups

 
LEARNING CENTER
TUTORIALS
.NET
.NET Tutorial
ASP Tutorial
ASP.NET Database Tutorial
ASP.Net Security,Internationalisation And Deployment
ASP.NET Tutorial
C# Tutorial
Web Development
Flex Tutorial
HTML Tutorial
Learn AJAX Tutorial
PHP Tutorial
Software Development
Database Tutorial
SQL Tutorial
UML Tutorial
Java
Ant Tutorial
EJB 3 Tutorial
Hibernate Tutorial
Java Tutorial
Java Web Component Tutorial
Java XML Tutorial
JDBC Tutorial
JDK1.5 Tutorial
JSF Tutorial
JSP And J2EE Design Tutorial
JSP Tutorial
Spring Tutorial
Struts Tutorial

RESOURCES
Q & A (451 )
Source Code (3275 )
Articles (359 )
Books (372 )
Components (1596 )
News (892 )
Websites (1207 )

SUBMISSIONS
Submit Article
Submit Website
Submit News
Submit Source Code
Submit Component

COMMUNITY
Members Directory
Discussion Forum
Chat

SITE
About Us
Sitemap
Search
Contact Us
Link To Us
Feedback
Tell a Friend
Partners
Advertise

Aspnet development-tips Tutorial
 Paging of data grid
  << Prev: Extract multiple resultsets from the Datareader Next: Exploit ASP.NET cache page. >>
ASP.NET Datagrid features an excellent capability termed as data paging support. After paging is enabled in DataGrid, you can view a fixed number of records that is featured at a time. You can also view the paging UI at the bottom of the DataGrid. This is required for navigating through the DataGrid. To move ‘Forward’ and ‘Backward’, paging UI is required. Better paging codes can be written if stored procedures are used.

The following codes can be used for paging of data grid:

    <asp:datagrid id="grdClaim" runat="server" Width="100%" ForeColor="White"               AllowSorting="True"
AutoGenerateColumns="False" BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px" BackColor="White" CellPadding="3"
GridLines="Horizontal" PageSize="50" AllowPaging="True" ShowFooter="True">
<Columns>
</Columns>
<PagerStyle HorizontalAlign="Right" ForeColor="White" CssClass="TableHeader" Mode="NumericPages"></PagerStyle>
</asp:datagrid>

private void grdClaim_PageIndexChanged(object source, System.Web.UI.WebControls.DataGridPageChangedEventArgs e)
{
ViewState["PageIndexToMigrateTo"]=e.NewPageIndex.ToString();
grdClaim.CurrentPageIndex = e.NewPageIndex;
LoadData();
BindData();   
}

  << Prev: Extract multiple resultsets from the Datareader Next: Exploit ASP.NET cache page. >>
Aspnet Development-tips Tutorial Home
Give feedback and win a prize.

 
   Printer Friendly
   Email to a friend
   Add to my Favourites    
  Download PDF version
   Report Bad Submissions
   Submit Feedback
 
  Delicious   Digg   Technorati   Blink   Furl   Reddit   Newsvine   Google Click each image to add
this page to each site.
 
 
Welcome Guest Signup
MEMBER'S PANEL
EMAIL
PASSWORD
Forgot your password?
New User? Click Here!
 
Resend Activation Email!
 
SEARCH
 
 
 
ADVERTISEMENT
 
 
 

Home | Login | About Us | Contact Us | Privacy Policy | Advertising