title: C# combine 2 events in one method
body: <p>I am relatively new to programming, as you will soon see...<br>
  I have 2 events, which execute the same code. I currently have the following pseudo code for a datagridview:</p>
  
  <pre><code>private void dgv_CellEnter(object sender, DataGridViewCellEventArgs e)  
  {
     string abc = "abc";
  }
  
  private void dgv_CellClick(object sender, DataGridViewCellEventArgs e)  
  {
     string abc = "abc";
  }
  </code></pre>
  
  <p>Is there a way to combine this into one event? Is there a better way to do this?</p>