472,789 Members | 1,146 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,789 software developers and data experts.

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 4579
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

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

Similar topics

5
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...
10
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
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...
0
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
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...
8
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...
0
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...
0
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...
4
by: Peter | last post by:
I want to call a JavaScript on PageIndexChanged event, how do I do that? Thank You Peter
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?

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.