• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 431
  • Last Modified:

Gridview PageSize

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
2 Solutions
thiyagukTech Lead Commented:
Muhammad Ousama GhazaliSolution Analyst & ArchitectCommented:
Make sure AllowPaging property is also set to True.
Mr_ShawAuthor Commented:
Here's html for a gridview with paging working...
  <asp:GridView ID="GridView1" runat="server"  AllowPaging="True" PageSize="20" EnableSortingAndPagingCallbacks="True"  >
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now