title: How to fire C# DataGridView SelectionChanged event programmatically?
body: <p>I have a problem in firing DataGridView SelectionChanged using code, i'm working on Windows forms unsing C# on Visual Studio 2013.</p>
  
  <p>I use this solution :</p>
  
  <pre><code>private void dataGridView1_SelectionChanged(object sender, EventArgs e)
  {    
  /* Code here ...  */
  }
  </code></pre>
  
  <p>and fire it using a button click like this :</p>
  
  <pre><code> private void button1_Click(object sender, EventArgs e)     
   {
   ...
   dataGridView1_SelectionChanged(sender,e);
   ...
   }
  </code></pre>
  
  <p>Is this the right way to do this ?</p>