You could check the parentGrid.Items.IsEditingItem property. If it is True, then the Esc is from Edit, otherwise it is from Insert.
Let me know how this works for you.
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>