Rowupdating object sender gridviewupdateeventargs

Then we need to override the gridview's Row Updating event.

This calls for some extra coding from developer's end. As an example we are going to use Employees table of the Northwind database. Add three Bound Fields and a Command Field to the Grid View with the help of Fields dialog (see below).

Please let me know if this has helped anyone solve the problem!!

By performing above coding we would avoid the error - Specified cast is invalid.

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.


Leave a Reply