I have a WinGrid embedded in a form with the UpdateMode set to OnRowchangeOrLostFocus. If I add a new row and edit one or more of the fields and then close the form changes are not being saved. If I click on another row then the changes are saved. I thought the LostFocus would get the changes saved. How can I ensure that changes made to the row immediately before closing will actually be saved.
Thanks Mike, that sorted it. Pat
My guess is you are closing the form without losing focus on the grid. If you close the form via a toolbar button, for example, a toolbar button does not take focus.
The thing to do is call the UpdateData method on the grid to force an update on all grid rows.