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

Handle PageIndexChanging event

I have a Query that runs when the user submits a search and the gridview is loaded. I want to page the gridview and would usually have my grid in a LoadGrid(). I have the paging working ok and everything is good until I want to view page 2 of the…
StudentRik
  • 1,049
  • 2
  • 20
  • 37
0
votes
1 answer

Paging in a gridview ASP.Net doesn't work

I have an ASPX application with C# .In a page I have a gridview with paging(i add allowpaging="true",PageSize="2"). In aspx file :
user1577242
  • 413
  • 2
  • 13
  • 29
0
votes
2 answers

asp.net paging, 1st page shows records, but 2nd page is empty

I've used asp.net gridview control. In gridview doing paging manually. But only first page shows the records. the page is completely blank. can anyone suggest what & where will I need to modify for the PageIndex Events?
user1826475
  • 19
  • 1
  • 5
0
votes
2 answers

Gridview PageIndexChanging not Firing

I am writing my own event handler for GridView in PageIndexChanging event, I didn't explicit set the DataSourceID for my GridView, here is my code: Code for GridView data binding: protected void DetailsView_DataBound (object sender, EventArgs e )…
user1969492
  • 1
  • 1
  • 1
0
votes
2 answers

RadGrid not paging

I get the paging to show when the RadGrid is shown, but when I try to click for the next page the RadGrid disappears. Here are the following screenshots that might help with this problem Please help with some guidance to help me resolve this…
SpaceApple
  • 1,309
  • 1
  • 24
  • 46
0
votes
2 answers

Manual Databind in Gridview Paging

Server Error in '/' Application. -------------------------------------------------------------------------------- The GridView 'GridView1' fired event PageIndexChanging which wasn't handled. Description: An unhandled exception occurred during the…
monkey_boys
  • 7,108
  • 22
  • 58
  • 82
0
votes
1 answer

GridView PageIndexChanging

I have a gridview that when more than 10 items are in the view, a new page is added, pretty straightforward...Anyway, when a user is on the second page and clicks delete on that record, the item from the first page in that row is deleted. Example: …
Jim S.
  • 203
  • 8
  • 24
0
votes
1 answer

How to handle JavaScript's confirm dialog box on GridView's PageIndexChanging event?

What I'm trying to do is when the user tries to go to a different page inside a GridView control, I want to display JavaScript's confirm dialog box. If the user clicks on OK then the page should change. If not the page should not. What I've done…
Rusty Wizard
  • 531
  • 6
  • 20
0
votes
1 answer

PageIndexChanging which wasn't handled

I have set up EnableSortingAndPagingCallbacks="True" for a gridview and I don't have any template columns. Paging works fine on all browsers without any errors but only few users ( not all IE8 users) of IE8 reported PageIndexChanging which wasn't…
user228777
  • 3,082
  • 9
  • 33
  • 50
0
votes
0 answers

What to use to select between data sources in PageIndexChanging in gridview

I have a gridview that has paging enabled. The problem is depending on what the user clicks there are a couple of different ways to populate the datasource for the gridview. So, if pages are generated I'm not sure how to differentiate between the…
chobo
  • 31,561
  • 38
  • 123
  • 191
-1
votes
1 answer

The GridView 'grid' fired event PageIndexChanging which wasn't handled

public partial class WebForm2 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { string connectionString = WebConfigurationManager.ConnectionStrings["base"].ConnectionString; …
Amit Kumar
  • 9
  • 1
  • 2
-2
votes
1 answer

event PageIndexChanging wasn't handled

I'm getting "The GridView 'grdFiles' fired event PageIndexChanging which wasn't handled." even if I've added the event handler: protected void grdFiles_PageIndexChanging(object sender, GridViewPageEventArgs e) { GetFiles(); …
1 2 3 4
5