Gridview rowupdating not giving new values

Posted by / 19-Jun-2020 12:34

Gridview rowupdating not giving new values

After searching long and hard I found a great article that solved my issue.Take a look at the page load if you are binding on post back then the values get updated before you are able to access them.This collection only requires the row index no and it will give us the primary key.Last line of the following code is calling a local method for updating the database and passing all the parameters to this method.In my approach, you can leave the commandfield as is, then you can hide it as needed via code behind.

Raises the Page Index Changing and Page Index Changed events.event is raised when a button listed in the previous table is clicked, it is recommended that you use the events listed in the table for the operation. This has dictionaries for key-, old- and new-values. The event has event-arguments of type Grid View Update Event Args.Please keep in mind that there are many different ways to update the database using the Grid View control depending on the type of data you are updating and the functionality the user need and there are many solutions to achieve the same end result.Now I will show you the C# code behind file of the above ASP.

gridview rowupdating not giving new values-15gridview rowupdating not giving new values-52gridview rowupdating not giving new values-5

New Values,this is equal to Nothing, I Bind it to List object.