title: Keydown event inside onSelectRow method
body: <p>I have this code in my JQuery grid:</p>
  
  <pre><code>onSelectRow:function(rowid){
      var r=$("#myGrid").getRowData(rowid);
      var col1 = r.column1;
      $("#myGrid #"+rowid).keyup(function(e) {
          if(e.keyCode == 46) { 
              alert(col1);
          }
      });
  }
  </code></pre>
  
  <p>my actual purpose is to delete the selected row record in database when <code>[delete]</code> key is pressed on the keyboard.</p>
  
  <p>I am testing the code with <code>alert()</code>, as given code above.</p>
  
  <p>The problem is, whenever I clicked on the same row multiple times, say 4 times, followed by single <code>[delete]</code> key press, the alert popup 4 times. However, it works fine when I clicked 4 different rows, followed by single <code>[delete]</code> key press.</p>
  
  <p>This is the illustration of the situation(clicked rows, followed by <code>[delete]</code>):</p>
  
  <pre><code>   clicked row(in sequence)                alert popups   
  
     row1 -&gt;[delete]                         row1
     row1, row2, row3, row4 -&gt;[delete]       row4   
     row1, row1, row1, row2 -&gt;[delete]       row2    
     row1, row2, row3, row3 -&gt;[delete]       row3, row3    
     row1, row2, row2, row2 -&gt;[delete]       row2, row2, row2    
     row1, row1, row1, row1 -&gt;[delete]       row1, row1, row1, row1 
  </code></pre>
  
  <p>Why and how to overcome this problem? Or maybe there is another better way to do this?</p>