Solved

Gridview PageSize

Posted on 2009-05-19
4
400 Views
Last Modified: 2013-12-17
I have a gridview which I would like to limist to 8 records per page.

I have set the PageSize property to 8 but when I run the web page it still shows 10.

Is there any other settings which I have to set or any know conflicts.

I am using C# with ASP.net v2
0
Comment
Question by:Mr_Shaw
4 Comments
 
LVL 7

Accepted Solution

by:
thiyaguk earned 250 total points
ID: 24420244
0
 
LVL 11

Assisted Solution

by:Muhammad Ousama Ghazali
Muhammad Ousama Ghazali earned 250 total points
ID: 24420535
Make sure AllowPaging property is also set to True.
0
 

Author Closing Comment

by:Mr_Shaw
ID: 31582921
thanks
0
 
LVL 4

Expert Comment

by:TimSledge
ID: 24420935
Here's html for a gridview with paging working...
  <asp:GridView ID="GridView1" runat="server"  AllowPaging="True" PageSize="20" EnableSortingAndPagingCallbacks="True"  >
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now