I'd like to respond to the enter key when a row is highlighted. i.e. select the row using the arrow keys, then hit enter and essentially duplicate the functionality of the doubleclick action grabbing the row.datacontext like so:
how do I do that?
Jonathan
private void GridViewImportTransactions_MouseDoubleClick(object sender, MouseButtonEventArgs e) { FrameworkElement originalSender = e.OriginalSource as FrameworkElement; if (originalSender != null) { var row = originalSender.ParentOfType<Telerik.Windows.Controls.GridView.GridViewRow>(); if (row != null) { //MessageBox.Show("The double-clicked row is " + ((PacerImportTransaction)row.DataContext).ID); RawDataWindow _rawDataWindow = new RawDataWindow(((PacerImportTransaction)row.DataContext)); _rawDataWindow.ShowDialog(); } } }how do I do that?
Jonathan