473,322 Members | 1,703 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,322 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
Nov 15 '05 #1
0 832

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...
1
by: branton ellerbee | last post by:
Has anyone had this problem: you are using a datagrid that is populated by a filter. Let say for arguments sake, it is a list of clients. And you narrow the list with the alphabet using a...
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.