I have a WPF application which contains a window, which has a RadGridView control in it. There's an action that I want to occur when the user double clicks on a row in the `RadGridView` control, or if they press the `Enter` key while a row is selected.
The `RadGridView` control currently has an event handler associated with the `MouseDoubleClick` event. What I want to do is to execute the same code that's in the `MouseDoubleClick` event handler when the user presses the `Enter` key and a row is selected in the `RadGridView`. I've already moved that code into a helper method that can be called from either place.
Right now, pressing enter while a row is selected in the RadGridView control causes the row after the currently selected one to be selected. How do I change the behavior associated with pressing the Enter key?