Solved

Gridview PageSize

Posted on 2009-05-19
4
396 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
Comment Utility
0
 
LVL 11

Assisted Solution

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

Author Closing Comment

by:Mr_Shaw
Comment Utility
thanks
0
 
LVL 4

Expert Comment

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

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

772 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

10 Experts available now in Live!

Get 1:1 Help Now