Gridview updating event in asp net

Posted by / 14-Nov-2017 05:28

With the help row variable, I am going to find all the controls placed under that row in edit mode using Find Control property.

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.Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free.You'll be able to ask questions about coding or chat with the community and help others.For Page Name and Page Description field I want them to appear in the Text Box in edit view, so I have specified text property of Text Box as the field value in Edit Item Template and for Active field, I want it to appear as the Drop Down List so I have specified the Selected Value property as the value of the Active field.You may notice that the last column of the Grid View is a Delete column that let user delete the record from database, so I have placed Delete link button inside the tag and have specified on Click property as Java Script confirm return value, so that when user clicks on it he/she sees a confirmation box whether he/she really wants to delete the record.

gridview updating event in asp net-20gridview updating event in asp net-47gridview updating event in asp net-78

This will make sure that Bind Data() method will not fire when you are going to edit, update or delete the record.

One thought on “gridview updating event in asp net”