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.
Information regarding the origin and location of the exception can be identified using the exception stack trace below.
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.
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.
I have already set allow paging to true and page size to 5.
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.
The Grid View is associated with the On Row Command event.
Then in the code behind I have handled the On Row Command event.
In the event handler function I have checked for the Command Name property and write necessary code for each of the actions.
The HTML code for the Grid View is as follow : Till now everything looks fine but the problem arises when you run this application.
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.