Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Gridview Page Index Change
Message
From
17/12/2009 12:28:07
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Gridview Page Index Change
Miscellaneous
Thread ID:
01439612
Message ID:
01439612
Views:
81
I have a form with a DropDownList that allows the user to select a date.

There is also a GridView control on the page. The control is configued to allow paging.

The user selects a data and presses a button to generate the data to populate the GridView. All this is working as I expect.

Trying to change pages generated an "Event not handled" error message. A Google search on "Populating a gridview in code" (or some such search) recommended (in about a dozen or so posts that I could find)
Protected Sub GridView1_PageIndexChanging(ByVal sender As Object, ByVal e As  
   System.Web.UI.WebControls.GridViewPageEventArgs) Handles GridView1.PageIndexChanging

        GridView1.PageIndex = e.NewPageIndex
        GridView1.DataBind()
End Sub
The problem is that the grid now disappears.

About half of the stuff I read had somebody posting this same problem, but I could never find any followups explaining what else needs to be done.

Don't know if it's relevent but this particular page is attached to a master page.

I can post the entire code if anybody thinks it would be useful.

Thanks to all..............Rich
Next
Reply
Map
View

Click here to load this message in the networking platform