I have all the methods for all the events and everything seems to be working but the Row Updating Event. It is in a dashboard of this software my company uses.
But it still throws the same exception, although I've read on a couple of sites that changing it to On Row Editing and Grid View Edit Event Args would solve the problem. 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. In any case I added the empty handlers as follows: Protected Sub Gridview1_Row Updating(By Val sender As Object, By Val e As System. Errors from the database can be handled in the Data Source Control.Updated event, and even cancel that the error happened.