I have a windows form. It has a ComboBox and a DataGrid
I have a Leave event on my combobox and I have a double click event on my datagrid row
The idea is that on leaving the combobox, if the value of the combo box changed than use the new value to reload the datagrid.
Let's say the combobox is displaying a value of 1 and for that value there are 5 records displayed in the DataGrid. Now the user enters 2 in the combobox and tabs away. great in my leave event I see that the value has changed and I reload the Datagrid with all the records for that value
But if the user enters 2 and double clicks on existing records for the value 1, than the leave event reloads the datagrid and than the double click event FIRES.
How do I find a list of pending events and cancel each and every one of them, if the datagrid has been reloaded. thanks for any help