Hello.
I used RadGrid with declarative binding to SqlDataSource.
I need to store old and new values in log table when I make insert/delete/update operation.
I can handle
but this event fires before real operation in database and I don`t know if there is an error in current operation in DB or not.
Can anybody help?
I used RadGrid with declarative binding to SqlDataSource.
I need to store old and new values in log table when I make insert/delete/update operation.
I can handle
RadGrid_UpdateCommand event like this:protected void RadGrid1_UpdateCommand(object sender, GridCommandEventArgs e){ GridEditableItem editItem = (GridEditableItem)e.Item; //extract the edited values in a Hashtable Hashtable values = new Hashtable(); editItem.ExtractValues(values); //get the saved old values before editing Hashtable oldValues = (Hashtable)editItem.SavedOldValues; //insert data to Database //... }but this event fires before real operation in database and I don`t know if there is an error in current operation in DB or not.
Can anybody help?