Gridview onrowupdating event trivia dating sydney
The visitors to a web site can typically be divided into two groups: the users and the administrators.In data driven web sites, users are normally allowed to view data and administrators are allowed to add, edit or delete data.These properties will automatically render Edit, Update and Cancel buttons inside Grid View column.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.After searching long and hard I found a great article that solved my issue.
w=300" data-large-file="https://jwcooney.files.wordpress.com/2013/09/gridviewexample.gif? NET control; in particular with how to detect and record changes after the user has saved data in the Grid View.
This example shows how to edit and update records in a Grid View in ASP. This example is helpful in situations where an administrator needs to edit several records from the database.
For demonstration I have created a database (named Database.mdf) in which we have a table named tbl_Employee.
This enables you to provide an event-handling method that performs a custom routine, such as checking the results of the update operation, whenever this event occurs.
A Grid View Updated Event Args object is passed to the event-handling method, which enables you to determine the number of rows affected and any exceptions that might have occurred.