title: How to get DevExpress GridControl cell clicked in wpf?
body: <p>I have a wpf application where I using DevExpress GridControl with a TableView inside. My problem is that I want to get the clicked cell. I found on other post that solution:</p>
  
  <pre><code>private void TableView_OnMouseLeftButtonUp(object sender, MouseButtonEventArgs e)
      {
          TableViewHitInfo hitInfo = tableView.CalcHitInfo(e.GetPosition(MainControl));
          if (hitInfo.InRowCell)
          {
              object value = gridControl.MainView.GetRowCellValue(hitInfo.RowHandle, hitInfo.Column);
              //...
          }
      }
  </code></pre>
  
  <p>But grid control doesn't have a property named MainView. What i do wrong? Or have you other solution for my problem?</p>