469,907 Members | 2,178 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,907 developers. It's quick & easy.

GridView Page Size is not working

VB.NET(ASP.NET 2.0)-WEB
.NET PLATFORM

GridView Page Size is not working

Hi,

I have set the pagesize of a gridview to 22(both in aspx file as well as in the .vb file. But it's showing only 19 records on the first results set and I can see a blank space for 3 records from the headers of the gridview to the first record it's showing. So it seems like the gridview has allocated space for all 22 records. But if I click on navigation numbers and go to the next results sets it's showing 22 records.
How can I fix this?

Thank you,
Manuka.
Dec 10 '07 #1
2 4259
JamieHowarth0
533 Expert 512MB
Hi Manuka,

Firstly, welcome to TSDN. Please read our FAQ, especially our Posting Guidelines.

Secondly, please do not double-post your question as this clutters up our forum. I have deleted your other post for this purpose.

Thirdly, your question is ASP.NET-specific and has been moved to the .NET Forum (as the ASP forum is for classic ASP with VBScript as per this note which is displayed at the top of the forum).

Hopefully our .NET Experts can help you out on this issue.

Best regards,

medicineworker
Dec 10 '07 #2
jaz215
55
VB.NET(ASP.NET 2.0)-WEB
.NET PLATFORM

GridView Page Size is not working

Hi,

I have set the pagesize of a gridview to 22(both in aspx file as well as in the .vb file. But it's showing only 19 records on the first results set and I can see a blank space for 3 records from the headers of the gridview to the first record it's showing. So it seems like the gridview has allocated space for all 22 records. But if I click on navigation numbers and go to the next results sets it's showing 22 records.
How can I fix this?

Thank you,
Manuka.
are using visual web developer? if yes what version?
i'm not sure what's wrong with what you've done. maybe you've reset some properties in the gridview accidentally

i've tried on what you said but my gridview works fine when paging 22 records maybe what you can do is delete your current gridview and create a new one with the same name as the one as before and set the paging properties you need. this would probably delete properties that you have accidentally set

if it does not work just post back here :P
hope i could be of help
Dec 11 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

10 posts views Thread by NH | last post: by
2 posts views Thread by Kamen | last post: by
reply views Thread by ssims | last post: by
6 posts views Thread by CSharpguy | last post: by
8 posts views Thread by AG | last post: by
4 posts views Thread by Peter | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.