473,322 Members | 1,911 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.

Datagrid Paging Issue

Hi
I am using a datagrid for paging. I wrote the code as suggested by msdn. It shows me all the pages.The issue here is when i click on other pge pageindex changed is called and again binding happens. but, the page contents are not diaplayed accoding to the page. It shows 2nd page as selected in list but shows the contents of only 1st page

Please guide.
Nov 18 '05 #1
1 962

Have you implented the PageIndexChange event. I made that mistake at first.

An example :

Private Sub dgJob_PageIndexChanged(ByVal source As Object, ByVal e As
System.Web.UI.WebControls.DataGridPageChangedEvent Args) Handles
dgJob.PageIndexChanged
Try

Me.dgJob.CurrentPageIndex = e.NewPageIndex

Call Me.SetDataSource()

Catch ex As Exception

Me.lblError.Text = "clsJobStatusList.dgJob_PageIndexChanged : " &
ex.Message

End Try

End Sub

Cheers...P

"Pums" <an*******@discussions.microsoft.com> wrote in message
news:2A**********************************@microsof t.com...
Hi,
I am using a datagrid for paging. I wrote the code as suggested by msdn. It shows me all the pages.The issue here is when i click on other pge
pageindex changed is called and again binding happens. but, the page
contents are not diaplayed accoding to the page. It shows 2nd page as
selected in list but shows the contents of only 1st page.
Please guide.

Nov 18 '05 #2

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

Similar topics

2
by: Mathana g | last post by:
Hello Friends, When we bind custom collection object (which is populated with objects of custom class) to a Datagrid, the paging links(or numbers) are disabled and only first page number is...
0
by: Andy | last post by:
Hello Guys: I am not sure if this is where the post belongs or not. I am using C# to write an ASP.Net page. I have an issue where I want to use a DataGrid, becasue of the Paging aspect, but...
4
by: Manny Chohan | last post by:
hi guys, my code is returning an array and i need to create datagrid so that i can have sorting and implement prev....next function on it to navigate. is there any way this can be done in...
2
by: RJN | last post by:
Hi Sorry for posting again. I have a datagrid which is put inside a div tag to make it scrollable. I need to page the datagrid. The page numbers appear at the bottom of the datagrid and has...
6
by: Shawn | last post by:
Hi. I already have a datagrid where I'm using paging. I have a stored procedure that fills a temp table with 200-500 rows and then sends back 10 records at the time. When I go to page 2 the SP...
2
by: Axel Dahmen | last post by:
Hi, I'm using a DataGrid control to show a table's content with paging. For navigation through the pages I'm using the DataGrid's intrinsic navigation section. My problem: The DataGrid...
3
by: Danky | last post by:
Hello Masters! Anyone can help me with the datagrid, well, the app load a lot of data from DB and it show on the datagrid, and well, I need to allow paging and.... the issue is with the event...
5
by: tshad | last post by:
Is there a way to carry data that I have already read from the datagrid from page to page? I am looking at my Datagrid that I page through and when the user says get the next page, I have to go...
7
by: smithb1028 | last post by:
I have a simple DataGrid and trying to get paging to work. I orginially want to use this in an AJAX UpdatePanel, but I moved it out of it until I get it to work. This is the DataGrid in the...
1
by: chris3vic | last post by:
I have a dynamically created datagrid, populated from a dataset that is filled by a sql string triggered by a command button. The application itself allows a user to input a selection of criteria and...
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: 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
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.