ASP.NET: Paging in Grid View


Paging in ASP.NET Gridview is very simple.



To enable paging in a gridview follow the below steps,



1. Go to Gridview's Properties and Set "Allow Paging" property to "True".

2. Specify the number of rows a single page should contain in the "PageSize" property.

3. Write the below code in the Gridview's PageIndexChanging event.

protected void GridView1_PageIndexChanging(object sender,
Share on Google Plus

About Filegot

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment

0 comments:

Post a Comment

Thank you for your comment