Hi,
I have a form with a DataGridView on it.
In this DataGridView there is a DataGridViewComboBoxColumn. When changing the value of a cell of this DataGridViewComboBoxColumn, the CellValueChanged-event is only fired when leaving the cell (for example, if I click into another cell). The event is not fired when I change the value and then just close the form.
So, how can I save the changes (if there are any changes), if my form is simply closed?
[UPDATE]
The CellValueChanged is not fired when the form the DataGridView is on is shown through form.ShowDialog():
using (FormWithDataGridView form = new FormWithDataGridView()) {
form.ShowDialog(); // DataGridView on form fires no CellValueChanged-Event when form gets closed
}