Gridview onrowupdating event

In this article, I am going to explain how to manipulate data using Grid View control.

This article scope is limited to Updating and Deleting records using Grid View and I am not using any readymade Data controls for that but manually writing all event methods.

For demonstration I have created a database (named Database.mdf) in which we have a table named tbl_Employee.

The visitors to a web site can typically be divided into two groups: the users and the administrators.

I am using Template Field’s Item Template and Edit Item Template for providing read only and editing interface of the same column in the Grid View.

Row Updating event, doesn’t work as all samples say it should do.I will be using Sql objects directly into methods to keep the example simple and straight forward.In practical scenario you should use your existing architecture to populate and update the data.I have tried to add an event handler to the Row Updated event of my custom control but it is not called.I have tried to override On Row Updated in my custom control, but the breakpoint never gets hit.

Leave a Reply