datagrid edit not saved on exit

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 ?
 
G

Guest

I assume the DataGridView is new in Framework 2 ?
I'm still using 1.1. Looks like it's time for an upgrade ...
 
B

Bruno Alexandre

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top