473,760 Members | 8,623 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

GridView Page Size is not working

3 New Member
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 4648
JamieHowarth0
533 Recognized Expert Contributor
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 New Member
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

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

Similar topics

5
4837
by: Dick | last post by:
I have a GridView bound to an ObjectDataSource. I have a Button that calls GridView.DataBind. I want the row that is selected before the DataBind to still be selected afterwards. This happens automatically if the data doesn't change. But if records have been added or deleted then it looks as if some code is necessary: I've done this by using GridView.SelectedValue to get the key value of the currently selected Row and then by itterating...
10
5309
by: NH | last post by:
I have a girdview with paging enabled. How can I add a message in the footer to say "Viewing records 1-15 of 45" etc Thanks
2
3880
by: Kamen | last post by:
Hello there, I try to define the properties font-size and font-bold of the pager of a gridview using the pagerstyle, but the settings are not appleyd at run time. What could be the reason for this? I am very appreciated for your help. Kamen Here is the ASPX-code:
0
8060
by: ssims | last post by:
I've got a GridView that's sorted by a stored procedure with ROW_NUMBER: PROCEDURE dbo.GetCalendarsByStatusIDPaged ( @startRowIndex int, @maximumRows int, @statusID int ) AS
6
3474
by: CSharpguy | last post by:
In my gridview I have 2 -3 template fields which are hyperlinks. I allow the user to print this grid. When the grid prints it also prints the links, how can I take the user to a print preview page and not show the templated fields, (hyperlinks) and also not print those fields?
8
8535
by: AG | last post by:
ASP.NET 2.0, VS 2005 I have a gridview with paging enabled, bound to an objectdatasource. Both were dropped on to the page and configured via the wizards. Basically working as expected. The gridview's databind method is apparently called when the page is loaded as I have no code calling the databind method. How can I keep the gridview from databinding automatically and control it myself?
0
1429
by: manukaleel | last post by:
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...
0
1542
by: joelgarcia007 | last post by:
I really hope someone can help me with this because it's really driving me crazy. I need to dynamically display multiple data tables on a page so I am using a Repeater to do so and in the ItemTemplate of the Repeater I am adding a Gridview control. One of the columns of the GridView control is a TemplateColumn that contains an ImageButton. The tricky thing is that I am using .NET 2.0 and it seems that I have to register this control (I'm...
4
8835
by: Peter | last post by:
I want to call a JavaScript on PageIndexChanged event, how do I do that? Thank You Peter
0
9333
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9945
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9765
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7324
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6599
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5214
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5361
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3863
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3442
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.