Lỗi the gridview gvkhachhang fired event pageindexchanging which wasnt handled năm 2024
When i use a sqldatasource to link a gridview the paging/sorting works all fine, but when i bind the grid with a dataset the following error appear´s The GridView 'GridView1' fired event PageIndexChanging which wasn't handled. What could be? ASKER CERTIFIED SOLUTION skiltz membership This solution is only available to members. To access this solution, you must be a member of Experts Exchange. Start Free Trial rp ASKER Ok it´s working, and for sorting grid, which the code that I must put. Hello, please help. thanks. When I run the program and I get this error message when I click on the second page. The GridView 'GridView1' fired event PageIndexChanging which wasn't handled. I had page number on HTML like this:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load End Sub
Private Sub GetFieldwork(ByVal procedure As String) End SubI am trying to implement paging on my gridview and I am getting the above error. I must not have something set right but I can't figure out what it is. I am reading my data into a DataTable and setting the GridView's DataSource to my datatable. I have a PageIndexChanging method for my gridview but it is not executing the code in the method. Here is what I have. Any help is appreciated! GridView Markup
Open in new window Code Behind
Open in new window |