I have a C# Windows form with a datagrid control. There is a Validating event on the datagrid that checks for changes:
if (this.dsAccts1.HasChanges() == true)
if (MessageBox.Show("Do you want to save your changes?",
e.Cancel = true;
//do nothing for now
When I update the value of a cell, move to a next record, then scroll, the Validating event is firing when that updated cell scrolls off of the datagrid's visible area.
I have also noticed that when using the mouse scroll wheel, the grid stops scrolling when the active record leave the viewable area.
QUESTION: How do I prevent the Validating event from firing while I scroll the grid???