title: How to perform an action on double click for GridControl
body: <p>I have a <a href="http://documentation.devexpress.com/#WindowsForms/clsDevExpressXtraGridGridControltopic" rel="nofollow">GridControl</a>.  </p>
  
  <pre><code>    private void gridControl1_DoubleClick(object sender, EventArgs e)
      {
          GridControl grid = sender as GridControl;            
          DXMouseEventArgs args = e as DXMouseEventArgs;
          BaseHitInfo hitInfo = grid.Views[0].CalcHitInfo(args.Location);
          MessageBox.Show("Hello World");
      }
  </code></pre>
  
  <p>How can I display <code>MessageBox.Show("Hello World")</code> only if the user double clicks on <strong>row data</strong>?  The code above shows hello world even if the user double clicks on whitespace.</p>