Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Gridview PageSize

Posted on 2009-05-19
4
Medium Priority
?
421 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 7

Accepted Solution

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

Assisted Solution

by:Muhammad Ousama Ghazali
Muhammad Ousama Ghazali earned 1000 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

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

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

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

636 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