title: JQGrid - OndblClickRow event to select field value by row selected
body: <p>I'm really struggling with this and can't seem to get this to work.</p>
  
  <p>Basically I have a bookings table, e.g.</p>
  
  <pre><code>id    bookref    account    fare
  
  1     BR1          101      10.00
  
  2     BR2          202      20.00
  </code></pre>
  
  <p>My Jqgrid shows all this information, what I want to do is get the bookref value by which row is selected. The current function I have is:</p>
  
  <pre><code>    ondblClickRow: function(rowid)
      {
          var grid = $('#bookings');
          var sel_id = grid.jqGrid('getGridParam', 'selrow');
          var myCellData = grid.jqGrid('getCell', sel_id, 'bookref');
  
          alert(myCellData);
  
      },
  </code></pre>
  
  <p>When I double click the first row I get 'BR1' returned which is correct, if I double click any other row I still get 'BR1' when I should get 'BR2' if the second row is clicked.</p>
  
  <p>Can somebody please help me with this? Would massively appreciated it</p>