Gridcontrol Show Popup When Grid Is Clicked

GridHitInfo ghi = dtData.CalcHitInfo(e.Location);

try {
  if (ghi.Column.FieldName == "AccountName") {
    popUpMain.Location = new Point(Cursor.Position.X - 230, Cursor.Position.Y - 200);
    popUpMain.Show();
    cmbAccounts.EditValue = Convert.ToInt32(dtData.GetFocusedDataRow()["AccountId"]);
  }
} catch {}
}