title: Validate DataGridView on menu item click
body: <p>Hi I have a windows form containing a menu bar, tool strip and a DataGridView control.
  I am using VB.Net.</p>
  
  <p>I have a save button on the tool strip and a save menu item. I need validation to run before save occurs. My problem is that if a cells value is changed and then either of the save buttons is clicked, validation does not run and so the new value is not saved.</p>
  
  <p>I have had a look at the events on the DataGridView such as the 'leave' event however none seem to do what I want. I.e. 'leave' does not run when either of the save buttons is clicked.</p>
  
  <p>Does anyone know of a way I can run my validation code when one of these buttons is clicked (or any other button).</p>
  
  <p>Any help is greatly appreciated!</p>