title: C# Dynamic DataGridViewCell Click Event
body: <p>I have one DGV to be clicked and another ones to be created in accordance with this click type and to be displayed in screen for a special job purpose. During creation process of other DGV's some cells (some row-column logic) will be clicked automaticaly with program code. Code below performs AUTO CLICK code part of this action. But I believe there must be a another method (as in Button PerformClick Event Fire) to achive this click action:</p>
  <pre><code>            DataGridViewCell dc;
              dc = MyDataGridView[0, 0];
              Rectangle rect = this.MyDataGridView.GetCellDisplayRectangle(0, 0, true);
              MouseButtons b = new MouseButtons();
              MouseEventArgs mev = new MouseEventArgs(b, 1, rect.X, rect.Y, 1);
              DataGridViewCellMouseEventArgs e = new DataGridViewCellMouseEventArgs(0, 0, rect.X + 2, rect.Y + 2, mev);
              MyDataGridView_CellMouseClick(dgvEntegCompany, e);
  </code></pre>