473,503 Members | 2,139 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

paging in datagrid

I using datagrid to display user's login/out history on my web site, also I have
set AllowPaging on the datagrid to true, but not matter I clicked page number on
either top or bottom, it is still display first page. Do I did something wrong?
Thanks in advance.
Nov 19 '05 #1
3 903

"Jason" <j@NoSpamPlease.org> wrote in message
news:2b********************************@4ax.com...
I using datagrid to display user's login/out history on my web site, also I have set AllowPaging on the datagrid to true, but not matter I clicked page number on either top or bottom, it is still display first page. Do I did something wrong? Thanks in advance.


Allow paging only raises the event. You need to handle the click. There are
quite a few posts on this.
Nov 19 '05 #2
You need to handle the PageIndexChanged event, fetch the new page of data,
and rebind the grid.

-Brock
DevelopMentor
http://staff.develop.com/ballen
I using datagrid to display user's login/out history on my web site,
also I have set AllowPaging on the datagrid to true, but not matter I
clicked page number on either top or bottom, it is still display first
page. Do I did something wrong? Thanks in advance.


Nov 19 '05 #3
you have to write code to handle the PageIndexChanged event
"Jason" <j@NoSpamPlease.org> wrote in message
news:2b********************************@4ax.com...
I using datagrid to display user's login/out history on my web site, also I have set AllowPaging on the datagrid to true, but not matter I clicked page number on either top or bottom, it is still display first page. Do I did something wrong? Thanks in advance.

Nov 19 '05 #4

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

Similar topics

0
1068
by: Joseph Walrave | last post by:
I want to create an ASP.NET web application using C#. Purpose of the web application is access to a MS SQL Server database. Some of our customers are using large databases, so the application...
2
3557
by: RelaxoRy | last post by:
sqlConnection1.Open(); myReader = sqlCommand1.ExecuteReader(); DataGrid1.DataSource = myReader; DataGrid1.DataBind(); myReader.Close(); sqlConnection1.Close(); The Datagrid populates fine. ...
1
4141
by: iforsyth | last post by:
Have a paging datagrid with a checkbox control in column(0). ViewState is enabled. I check the checkbox in first row of the grid on a page and then the program hits this event: Private Sub...
2
2230
by: Max | last post by:
Is it possible or more effecient to use a stored procedure to populate a datagrid when using datagrid or custom paging? Is it (ADO.NET?) pulling the entire table into the dataset or is it just...
1
1978
by: Maziar Aflatoun | last post by:
Hi, I have a Datagrid with AllowPaing property set so that the two arrows for the next and previous set of rows are showing. This is working fine. Now is there a way to instead of the 2...
0
1176
by: Jos Walrave | last post by:
I want to create an ASP.NET web application using C#. Purpose of the web application is access to a MS SQL Server database. Some of our customers are using large databases, so the application...
0
937
by: Roger | last post by:
I have some code that uses a SQL Stored procedure to return some rows. I would then like to have these rows show up in a datagrid. sqlCmd = New SqlClient.SqlCommand("R_GetSiphonDetail", sCon)...
3
1444
by: Darren | last post by:
Dear Groups I've used paging with a datagrid in C# at least a hundred times, but for whatever reason, I cannot get the prev /next to appear as links. It is absolutely certain that the number of...
3
2234
by: Antonio | last post by:
I am having a problem finding out how to page a datagrid. I have the procedure for moving from page to page as: private void changePage(object source,...
0
882
by: =?Utf-8?B?cGF0YW4uYW5pZkBnbWFpbC5jb20=?= | last post by:
Hi, My requirement is paging datagrid columns. not row paging Actually i have 18 columns at runtime..first 6 columns display at first time and remaining 6 will display by clicking next button...
0
7204
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
7091
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...
0
7342
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...
0
5586
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5018
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...
0
4680
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...
0
3171
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...
0
3162
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
741
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.