Sqldatasource updating event to check using the debugger

The Data Source is my last chance to change the query before it goes to the database.

I get an error saying that the Object cannot be cast from DBNull to other types.Hi everyone, I'm in a scenario where I am using a Form View control to edit records.The data access is being done with an associated Sql Data Source control.Using Data View Events Around every update, Data Views fire two events: one event before the update (with a name that enters with Inserting, Deleting, or Updating) and another event after the update (with a name that ends with Inserted, Deleted, or Updated).