title: use e.rowindex and e.columnindex outside the datagridview events
body: <p>In a method I want to use</p>
  
  <pre><code>dataGridView1.Rows[e.RowIndex]
  </code></pre>
  
  <p>and</p>
  
  <pre><code>dataGridView1.Rows[e.ColumnIndex]
  </code></pre>
  
  <p>How can I use  <strong>e.RowIndex</strong> and <strong>e.ColumnIndex</strong> outside the</p>
  
  <pre><code>private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
  </code></pre>
  
  <p>can we <strong>pass DataGridViewCellEventArgs e</strong> ?</p>
  
  <p>or what can be done ?</p>
  
  <p>sample code</p>
  
  <pre><code> var a = datatable1.Rows[e.RowIndex][0].ToString();
   var b = datatable1.Rows[0][e.ColumnIndex].ToString();
  </code></pre>