Gridview fired event rowupdating

Posted by / 04-Nov-2017 18:07

Gridview fired event rowupdating

" Insert Command="INSERT INTO [Pending Records] ([Username], [Password], [First Name], [Last Name], [Middle Name], [Address], [Gender], [Contact Number], [Plate Number], [Color], [Brand], [Liscensed Number]) VALUES (?

)" Update Command="UPDATE [Pending Records] SET [Username] = ?

One of the good things about Grid View is that it provides a built-in Command Field Buttons which allows us to perform certain actions like editing, updating,deleting and selecting of Grid View data.

So the gridview creates a row deleting event automatically....

Somebody Help me :( i've also tried adding this code ``On Row Deleting = "Pending Records Gridview_Row Deleting" but no success!

:( Here's my gridview full code: " Select Command="SELECT * FROM [Pending Records]" Delete Command="DELETE FROM [Pending Records] WHERE [ID] = ?

in the meantime here's my Gridview part of the code Fnostro, You’re absolutely right. Row Updating End Sub Protected Sub Gridview1_Row Updated(By Val sender As Object, By Val e As System. You could have bypassed it and "rolled your own" or if you wanted to spend the time learning how, you could have used the Sql Data Source control directly by populating the parameters and calling it's update function. Regardless of how you initialize an Update Panel any control that triggers a postback, inside or outside, full or partial, causes a Full Page Lifecycle.

I'm told that any edits go in a queue and need to be approved first to be displayed.... If this makes sense, I’m suspecting the handlers I added maybe overriding the inbuilt updating procedure? no worries about the credit, but to answer your question about why the events fire, it's because you are using the Update Row function OF the gridview, which requires having an Update command in the datasource.

gridview fired event rowupdating-24gridview fired event rowupdating-36gridview fired event rowupdating-59

But when i run it and click delete and clicking "yes" to confirm.