There isn't an out of the box way to know how a RadGridView cell has entered into edit mode. What I can suggest is to register event handlers for the PreviewMouseDoubleClick and KeyDown events and keep a variable indicating which one has been called last. Since those events are called before the BeginningEdit event of the RadGridView, you can implement the logic that you desire based on that variable. In the KeyDown event, you can check the Key
property of the KeyEventArgs
in order to distinguish when the F2 key was hit.
I remain at your disposal for any further questions you may have.
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin
, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.