Skip to content
Advertisement

How can I modify the value of an element of my gridview before update in database?

I have a gridview but I want to update a cell value before the update in the database but it doesn’t work

In the .aspx file:

In the .aspx.cs file:

I try to update the row before insert in database with OnRowUpdating but it doesn’t change the value. Someone have any idea how to do it ?

Advertisement

Answer

I have to do it in the sql finally.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement