datagrid edit not saved on exit

  • Thread starter Thread starter Guest
  • Start date Start date
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 ?
 
I assume the DataGridView is new in Framework 2 ?
I'm still using 1.1. Looks like it's time for an upgrade ...
 
yes 2.0

the final version is out there...
so I grabed one, and I do not have any complain to say about this final
version :)

--



Bruno Alexandre
(Sintra, PORTUGAL)
 
Back
Top