Sqldatasource updating old values


After that again, I am doing the same thing that I had done in Cancel Record method, I mean setting Edit Index property of the Grid View to -1 and rebinding the data again by calling Bind Data() method.

In this method, I am specifying the Edit Index property of the Grid View to -1.

As there is no row at -1 position so Grid View will be shown in normal mode.

To get the Primary key, I have used Data Keys property of the Grid View with the index of the row, being edited and stored into a integer variable after parsing.

Now I have declared a Grid View Row variable named row and stored the current row being edited into it.

See the Client-Side Events tutorial and the Events documentation.