title: Get Column Name/Index on KeyPress/KeyDown in jqGrid
body: <p>How can I get the column name/index on keypress/keydown event.
  Suppose :
  <code>$("#myGrid").keydown(keydownEvent);</code></p>
  
  <p><code>keydownEvent(e)</code> is a function. Now how can I get from which column it has been pressed in the <code>keydownEvent(e)</code> function?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>As @Rohan Kumar asked for some code, I am giving the function:</p>
  
  <pre><code>function keydownEvent(e) {
  
      if (e.keyCode == 9 || e.which == 9) {// Tab pressed
  
          //here I want to get the Column Index/Name from which key is pressed
      }
  
      if (e.keyCode == 113 || e.which == 113)  //f2 press
      {
          var rowid = $('#myGrid').getGridParam("selrow");
          ondblClickRowEvent(rowid, rowid, 1, e);
      }
  }
  </code></pre>
  
  <p>Sorry, I thought it was implicit. My mistake!
  HTML:</p>
  
  <pre><code>&lt;table id='myGrid' &gt;&lt;/table&gt;
  </code></pre>