Grid View displays the values of a data source in a table where each column represents a field and each row represents a record.

Incidentally the error message I get is: Index was out of range.

Must be non-negative and less than the size of the collection.

I am just wondering how to access the cell value for the row updating (event = Gridview.

To String Message="Conversion from string "Location Name" to type 'Integer' is not valid." I would prefer to get the cells by name rather then by location e.g. Keys is an array of all the data keys you define for the gridview (Data Key Names="id", where "id" is the field name from your database query) e. Old Values are arrays of all the fields in the gridview data source that are NOT leys, where, as you might guess, e.

"If you like my work; you can appreciate by leaving your comments, hitting Facebook like button, following on Google , Twitter, Linked in and Pinterest, stumbling my posts on stumble upon and subscribing for receiving free updates directly to your inbox .

Re-obtaining the List of objects via the utility method along with the index obtained from the event arg parameter is not an option because the List of objects may have changed.

I just tested that Protected Sub Wr_Updated(By Val sender As Object, By Val e As System.

how strange, the same thing worked perfectly on a different site: the sql part works...

Note You can use the Selected Data Key property to retrieve the Data Key object for the currently selected row.