private void SongGrid_OnPreviewKeyDown(object sender, System.Windows.Input.KeyEventArgs e) { // Just here to avoid user scrolling datagrid with keyboard e.Handled = true; }