title: How to know an event handled by User or Application Methods?
body: <p>I have a <a href="https://msdn.microsoft.com/en-us/library/system.windows.forms.control%28v=vs.110%29.aspx" rel="nofollow">Control</a> like a <a href="https://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview(v=vs.110).aspx" rel="nofollow">DataGridView</a> and several events declared for that.</p>
  
  <p>For example:
  <a href="https://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.cellendedit(v=vs.110).aspx" rel="nofollow">CellEndEdit</a>, <a href="https://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.cellleave(v=vs.110).aspx" rel="nofollow">CellLeave</a>, <a href="https://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.rowleave(v=vs.110).aspx" rel="nofollow">RowLeave</a>, <a href="https://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.rowsadded(v=vs.110).aspx" rel="nofollow">RowsAdded</a>, <a href="https://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.selectionchanged(v=vs.110).aspx" rel="nofollow">SelectionChanged</a>, ... .</p>
  
  <p>Now, when I want to insert several records to the grid, there was also <a href="https://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.selectionchanged(v=vs.110).aspx" rel="nofollow">SelectionChanged</a> for every one of them is executed, while I did not want to call <a href="https://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.selectionchanged(v=vs.110).aspx" rel="nofollow">SelectionChanged</a> events!
  This is only an example of my problems in events.</p>
  
  <p>In summary, my question is, How to know this event handling causes is a user or application methods are executed that ?
  In other words, How to know this <a href="https://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.selectionchanged(v=vs.110).aspx" rel="nofollow">SelectionChanged</a> event runs by user or a method called that ?</p>