title: OnClick event in WinForms DataGridView
body: <p>I am using DataGridView in WinForms and by this piece of code I am assigning it columns and values</p>
  
  <pre><code>dataGrid.DataSource = sourceObject;
  </code></pre>
  
  <p>only by this line all the columns and values into the grid. 
  How do I handle the onClick event of a specific row or field. I want to do edit a particular item in the grid but I cannot find any way to send the id of an item from the event method.</p>
  
  <p>There is class DataGridViewEventHandler which I do not understand?</p>
  
  <p>I have also tried to add columns manually as a buttons but I did not find way to assign it action method onClick.</p>