Rowupdating newvalues is empty
The only exception is the Remove Credit Card method, which actually doesn’t delete the item and in cascade the related items in the tbl_Import, but only flags the credit card as inactive.
In order to make this thing actually work, we need to modify the stored procedure that we defined in previous post sp_Get Credit Card Imports.
We are going to make our row editable on double click and in order to achieve that we will write down a function (in Java Script) that is going to be associated to the grids client side event called Row Dbl Click. At first we will add in our ASPX file, inside the grid definition a new section that is called Client Side Events (as we already did for other controls) and it will look like: It is that simple!
I will not go in the detail about the environment and developing requirements, if interested jump op to my other posts.
The attached project is written in Visual Studio 2012. Also you will need a Microsoft SQL Server 2012, Express or and more advanced version will be just fine.
If we move our mouse on to the variables, which hold the cell values, we can see the old value instead of new updated value (Refer the debugging Screen Shot at the Top).
the good old problem of getting the data from the row that is being currently edited within a Grid View. Accessing the "Controls": This method gets you access to the control in the Grid View, which might be useful based on what you are doing.