Rowupdating event is not
Do you have some sort of Java Script functionality that may be stopping it? A common problem people have with Grid Views is understanding when to data bind the data source to the Grid View.
The event handler receives an argument of type Sql Row Updating Event Args containing data related to this event. Get Command Line Args()) End Sub Overloads Public Shared Function Main(args() As String) As Integer Const CONNECTION_STRING As String = "Persist Security Info=False; Integrated Security=SSPI;database=northwind;server=my SQLServer" Const SELECT_ALL As String = "select * from Products" ' create Data Adapter Dim r Adapter As New Sql Data Adapter(SELECT_ALL, CONNECTION_STRING) Dim cb As Sql Command Builder = New Sql Command Builder(r Adapter) ' Create and fill dataset (select only first 5 rows) Dim r Data Set As New Data Set() r Adapter. I put a breakpoint on the Row Updating event handler and found that the event is not fired. I put a breakpoint on the Row Updating event handler and found that the event is not fired. In the Row Editing function, the edit textboxes appear and I can get the "old" values Then the page renders, I edit the textboxes and hit Update.Right now, I have not written code for the Update event. Right now, I have not written code for the Update event. Then the page posts back, the text boxes go back to being labels and the new values are lost, and the Row Updating code never fires. Yes, I did put the breakpoint at the Row Updating line (and not in the function).
You have to make sure that you aren't setting your Grid View's data when it is not postback.
You should create your data source once (on the user's first visit) and store it into Session for later use, and only bind the Grid View to the data source when it is necessary to do so.