Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
860
Saving the changes in a row
posted

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.

 

 

Parents
  • 469350
    Verified Answer
    Offline posted

        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.  

Reply Children
No Data