Gridview fired event rowupdating which wasn t handled

This enables you to provide an event-handling method that performs a custom routine, such as canceling the update operation, whenever this event occurs.A Grid View Update Event Args object is passed to the event-handling method, which enables you to determine the index of the current row and to indicate that the update operation should be canceled.I have a Gridview on an ASP page bound to an SQL table. I've configured the Grid to allow Multiple updates by replacing the default Label Controls with Template Fields using the approach described here: Bulk Updates to Rows Bound to a Grid View Everything was working fine, until I made a change to bind the Gridview query programmatically on page load (With the aim of making the Gridview display different data depending on the user currently viewing the page) as described here: Bind Gridview programmatically. Page Protected Sub Page_Load(By Val sender As Object, By Val e As System. Load If Not Is Post Back Then gvbind() End If End Sub Public Sub gvbind() Dim Sql Data Source1 As New Sql Data Source() Sql Data Source1. Copy() View State("original Values Data Table") = original Data Table table Copied = True End If End If End Sub Protected Sub Up_Click(By Val sender As Object, By Val e As Event Args) Handles Up. Row Index, False) Next ' Rebind the Grid to repopulate the original values table. Data Bind() End Sub Protected Function Is Row Modified(By Val r As Grid View Row) As Boolean Dim current ID As Integer Dim current Project As String Dim current Description As String Dim current CAPEX As String current ID = Convert.

Handle Event(Event Args e, Boolean causes Validation, String validation Group) 611 System. After making this change the page now throws the following error when the user makes changes and clicks the update button: I have read many threads on similair problems but I can't seem to find a solution to my error. Here's the Code: Public Class Input Inherits System. I don't know why dynamically binding the Gridview would cause an error in rowupdating. Raise Post Back Event(IPost Back Event Handler source Control, String event Argument) 13 System. Raise Post Back Event(Name Value Collection post Data) 9643314 System.

Search for gridview fired event rowupdating which wasn t handled:

gridview fired event rowupdating which wasn t handled-15

Leave a Reply

Your email address will not be published. Required fields are marked *

One thought on “gridview fired event rowupdating which wasn t handled”