Questions tagged [page-index-changed]

PageIndexChanged occurs when one of the pager buttons is clicked, but after the GridView control handles the paging operation

The PageIndexChanged event is raised when one of the pager buttons is clicked, but after the GridView control handles the paging operation. This enables you to provide an event-handling method that performs a custom routine, such as a custom paging operation, whenever this event occurs.

To determine the index of the page selected by the user, use the PageIndex property of the GridView control.

When the paging feature is enabled (by setting the AllowPaging property to true), use the PageIndex property to determine the index of the currently displayed page. You can also use this property to programmatically change the displayed page.

72 questions
0
votes
1 answer

After paging GridVIew does not display all data when searched

My GridView does not display correct data after searched performed on its second page. After populating the GridView and navigating to the second page with PageIndexChanging method, GridView is not refreshed after applying search filters. It remains…
gene
  • 2,098
  • 7
  • 40
  • 98
0
votes
1 answer

PageIndexChanged is not working

I am using Radgrid with pager. When clicking on the next page number on a pager the data is not displaying(not binding the data). Can anyone help me to fix this. here is my code. protected void Page_Load(object sender, EventArgs e) { try { …
Tronics
  • 1,438
  • 4
  • 22
  • 33
0
votes
3 answers

ASP.Net Gridview paging, pageindex always == 0

EDIT: Now Working, see below. Hi all, Having a slight problem with my ASP.Net 3.5 app. I'm trying to get the program to pick up what page number has been clicked. I'm using ASP.Net's built in AllowPaging="True" function. It's never the same without…
David Archer
  • 1,154
  • 6
  • 18
  • 34
0
votes
3 answers

DataGrid in UserControl

I have a DataGrid in a USerControl. Somehow the paging doesnt work, the paging has the right amount of pages, but clicking the numbers does not work ... it stays on page 1. This is my Grid:
grady
  • 12,281
  • 28
  • 71
  • 110
0
votes
0 answers

Duplicate Values in Gridview if on different page of the gridview

I am having a Gridview with 1 checkbox column and 3 other columns. To 1 colums I am adding values from a TextBox on ButtonClick. I want that duplicate values should not displayed in the gridview for which I have added code in Rowdatabound. The…
Aditya
  • 73
  • 9
0
votes
0 answers

My Datagrid on PageIndexChanging and on Sorting disappears on me?

So I have a Search Page where a user search's for a supplier. All well and done. Now because I am using an entity framework I do not have a dataset bound to the grid. Instead I have these two babies. Protected Sub…
ace.nasir
  • 1
  • 1
  • 4
0
votes
5 answers

Custom Paging for GridView in an UpdatePanel not firing PageIndexChanging event

I have a GridView that uses custom paging inside an UpdatePanel (so that the paging and sorting of the gridview don't cause postback). The sorting works fine, but the paging doesn't. The PageIndexChanging event is never called. This is the aspx…
JeffCren
  • 396
  • 1
  • 5
  • 15
0
votes
1 answer

Maintain Checkbox status between PageIndex

Seems as if I am missing something simple. Checked boxes do not retain status when changing PageIndex. .aspx page code behind using System.Data; using…
0
votes
1 answer

Gridview PageIndexChanging event not firing with ViewState off and Dynamic datasource

I am having issues getting my PageIndexChanging event to fire. Viewstate is switched off and I have a dynamic datasource which I am loading on each postback on PageInit event.
Chris
  • 805
  • 6
  • 19
0
votes
2 answers

GridView OnPageIndexChanging event does not fire

Everything seems to be fine with my GridView and code behind, but event does not fire. Here is my Grid:
eugene.it
  • 417
  • 3
  • 13
  • 32
0
votes
1 answer

Click page index on gridview not call to PageIndexChanging event

I have a gridview gdvNotification. When the page load first time: My gridview have paging. My problem is: when the page load first time: i click on the page index, but page index not changing. I debuged: when click on the page index, call to…
lmt1608
  • 84
  • 9
0
votes
1 answer

Programmatically get the first row from a GridView after changing pages

Can anyone tell me how I would get the data from a row in a DataGrid after a page changes. I am currently trying the following: protected void MissionariesGrid_PageIndexChanged(object sender, EventArgs e) { string missionaryID =…
user2970381
  • 93
  • 3
  • 11
0
votes
1 answer

How can I update GridView rows on pageindexchanging if row template fields have changed?

I have the following onclick event for updating gridview rows that have changed. I need to update the rows if the user changes page index without clicking the update button first. protected void btnUpdate_Click(object sender, EventArgs e) { …
user2759172
  • 11
  • 1
  • 3
0
votes
3 answers

PageindexChanging TargetInvocationExeption

I'm having a little bit of trouble sorting out the paging scenario with a gridview i.e. I can't get the bloody thing to show page, 2, 3, 4, etc. I have the following Grid view code
MrDean
  • 305
  • 5
  • 8
  • 23
0
votes
1 answer

PageIndexChanging in gridview won't fire

I downloaded a free template from the internet and now I am using it in my project of ASP.NET. I have a gridview and I am using Paging but because of the template the PageIndexChanging event wont fire. Now is there a alternate to this because my…