The List View Updated Event Args object that's passed in to the Item Updated event handler for the List View does not have a Keys collection like the Grid View Updated Event Args object passed into the Row Updated event handler for a Grid View.
I ended up retrieving the key value for the updated item from the Data Keys collection using the Edit Index of the List View.
When used with the Datasheet view, either unknown or conflict errors would prevent the user from committing any changes to the Share Point List.
Scenario Overview: Custom event handler for a Share Point List with lots of columns.
Cancel = true – and the custom redirect Url kicks in.
But still, in 2007 this property does not exist, and in 2010 – you might want to have a custom redirect page and not cancel the event. The way to do it, is to add some code to a sync event.
Edit Form Scenario: The Item Updating event worked without a hitch.
I’ve seen a lot of posts saying you can’t redirect to a custom error page from a SPItem Event Receiver in Share Point 2007. Redirect Url which will send you to a custom error page, instead of the OOB error page that displays your properties. this is simple enough, all you have to do is set properties.I have a List View that's bound to a LINQDatasource control and need to get the primary key value of the table within the Item Updated event handler.I have no problem getting the value from within the Item Updating event handler because the List View Update Event Args parameter provides access to the keys collection.Async events can’t help you since they are not guaranteed to run immediately, and they don’t have any user context when they execute… Redirect(Page Url, SPRedirect Flags, HTTPContext); within your Item Adding, Item Updating or Item Deleting event handler to redirect your user to a custom page. Current in your event handler method – you will get a null context. Current is in your event handler class constructor.This redirection kicks in and throws the “Thread Abort Exception”, stopping the rest of your code from running and redirecting the user to your custom page. Thread Abort Exception is a “catch me if you can” exception. block, but this exception will always bubble up and be thrown again and again. save it as a member, and use it in your event handlers. Use any instance member (private/public/protected…) but don’t use a static member as you may run into unexpected trouble.