Edit Index = -1 'Bind data to the Grid View control. Sql Command Dim sql As String Dim reader As System. Sql Command Dim sql3 As String Dim reader3 As System. In my code I tend to write the databinding logic as part of the page logic which usually is just a couple of lines of code.Anyway, the problem isn't that it can't be done 'manually' - but rather that there are a myriad of ways that you can hook up custom link/command processing and they are all similar but yet quite different.I'll try to address your question, but I'm also going through some of the other problems here.Without seeing your markup, it's hard for me to tell if you've created .That I can "cancel out" of a row update if I want to?event is raised when a row's Update button is clicked, but before the Grid View control updates the row.
For each row that is created I then use different methods in the fields to extract the relevant information from the object like this one: My problem is that in the On Row Deleting method I would preferably like to be able to access that Data Item using e g My Grid View. If that’s not possible can I access the values that are bind by the methods?
Although this isn't as big of a problem when you're referencing the text from web controls, getting in the habit now will prevent you from serious headaches and inefficiently checking for null and empty later. NET 4.0, you should have access to event, you need to pull the new values out of the front-end controls, and then re-bind your data.
It looks like your source code is pretty close to the MSDN source code here.
The typical scenario might be a list where you can toggle certain options or where you can fire an operation that otherwise updates the data that's underlying the grid.
I tend to use business objects in my applications so using the standard data controls doesn't work very well, nor would it really buy much in terms of abstraction.