473,386 Members | 1,842 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

problem with PageCount

I have ASPX page with DataGrid object. To fill this object I use DataTable
that contain result of stored procedure. In my case it's about 300 rows.

I would like to display this table with paging.

The code like:

ReportGrid.DataSource = doData.GetTestTable();

ReportGrid.AllowPaging = true;

ReportGrid.PageSize = 20;

ReportGrid.DataBind();

Displays cool table on ASPX page.

My problem is that I need to display the total number of pages that could be
displayed.

I'm trying to use:

ReportGrid.PageCount any time returns me zero (0). Please help me to
retrieve PageCount.

Thank you, David Potahinsky
Jul 21 '05 #1
0 1034

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: David Potahisnsky | last post by:
I have ASPX page with DataGrid object. To fill this object I use DataTable that contain result of stored procedure. In my case it's about 300 rows. I would like to display this table with paging....
4
by: Dave | last post by:
Hello All, I am having a nightmare trying to add a new row to my Datagrid. When I use the code below I get the error: 'Invalid CurrentPageIndex value. It must be >= 0 and < the PageCount. Can...
2
by: anand | last post by:
Hello there, Just a small problem while navigating datagrid, i am filling a datagrid by output of query. i have given navigation buttons first,last, next, previous.it is working but the problem...
0
by: anon | last post by:
Hi All, tried implementing the custom paging solution from 4 guys from rolla...however the pagecount in my implementation always returns one, so the postback gives an error asying"CurrentPageIndex...
3
by: Franck | last post by:
Hello, in a datagrid, in the ItemDataBound event in some cells a add some javascript that show up an information strHref.Append("<A onclick=\"popupValid();\">"); strHref.Append("<span...
0
by: Thomas Wopienka | last post by:
Hello! I've found several articles about sending PCL or PJL commands to a printer to query the pagecount. One of the articles was about querying the pagecount of a printer but only the PJL...
2
by: Vince13 | last post by:
I'm fairly new to c# and Visual Studio. I've been having what seems like a common paging problem. When I try to change pages (even just from the first page to the second), the error comes up: ...
2
by: saviomf | last post by:
Hi all, I have a problem with my paging script. The first time it executes, (say it gives 5 pages of records), it will display 1 of 5 but when i click on the next button, it gives 1 of 1 . Please can...
2
by: =?Utf-8?B?SnVsaWEgQg==?= | last post by:
Hi all Got a weird problem with pagination on a datagrid in asp.net 1.1. It's populated depending on user selected criteria (it either displays all or 1 record). It works fine in the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.