Gav,
You don't have to wait a few seconds, you should just shift focus from
the cell.
Also, if you want to force the edit to complete, then you can get the
view on the current row being edited (through the currency manager for the
data source the grid is bound to) and call the EndEdit method on that. This
should commit the changes and cause the correct new value to be committed.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Gav" <sp**@spam.com> wrote in message
news:OQ**************@tk2msftngp13.phx.gbl...
Hi all,
I have a datagrid which is populated by a dataset, I have some code to
update the database etc... If I enter a value into the datagrid and hit
the save button it saves the old value not the one just entered, I have to
make sure I take the focus from the cell and wait a few seconds before i
save it.
Is there a way i can speed this up so it saves the correct value?
Thanks
Gav