title: how to get the editing control of datagridview/datagridviewcell?
body: <p>I have a datagridviewcell with textbox as the control hosted by it. Now how do I get the type of control programmatically in other parts of my code? </p>
  
  <p>I add the column like this: </p>
  
  <pre><code>DataGridViewTextBoxColumn col = new DataGridViewTextBoxColumn();
  col.ReadOnly = false;
  col.Name = "Status";
  col.HeaderText = "Status";
  dgv.Columns.Add(col);
  </code></pre>
  
  <p>All the cells in that column now will have a textbox. I can get the control as a textbox like this: </p>
  
  <pre><code>private void dgv_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e)
  {
      if (dgv.CurrentCell.ColumnIndex == 5 &amp;&amp; e.Control is TextBox)
      {
           //something
      }
  }
  </code></pre>
  
  <p>How do I get the type of control hosted in the cell elsewhere? How to get <code>e.Control</code> from other parts of code so that I can do things like:</p>
  
  <pre><code>((TextBox)dgv[i, j].EditinControl).AutoCompleteSource = AutoCompleteSource.CustomSource;
  ((TextBox)dgv[i, j].EditinControl).AutoCompleteCustomSource = someSource;
  ((TextBox)dgv[i, j].EditinControl).AutoCompleteMode = AutoCompleteMode.SuggestAppend;
  </code></pre>
  
  <p>etc. What can substitute for <code>EditinControl</code> in the above line.. ??</p>