G
Guest
I have a bound datagrid on a form, with a close button. All the close button
does is call me.close. If I edit a cell, then click my close button, the edit
can be seen in the grid, as expected, when I enter my form_closing event code.
However if I edit a cell then click the "X" in the top right corner of the
form, the form_closing event fires, but the grid shows the "old" value of the
cell, thus the change to the cell is not saved.
I am working around this currently by preventing the user form using the "X"
to close the form, but there must be a better way ?
does is call me.close. If I edit a cell, then click my close button, the edit
can be seen in the grid, as expected, when I enter my form_closing event code.
However if I edit a cell then click the "X" in the top right corner of the
form, the form_closing event fires, but the grid shows the "old" value of the
cell, thus the change to the cell is not saved.
I am working around this currently by preventing the user form using the "X"
to close the form, but there must be a better way ?