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
1035
Change in grid not saved
posted

Hi,

I have a problem that happens sometimes, and I can't find the source of the problem:

In the software I develope:

1. I open a screen for the first time
2. I change a cell in a grid of type dropDownList
3. I try to save with SubmitChanges()

and the change is not saved!!!

I work with LINQ.

Waiting for your advise,
Thanks ahead,
Yael

Parents
No Data
Reply
  • 469350
    Offline posted

    What triggers the save? My guess is that you are using a toolbar button or some other control that does not take focus. Since the grid never loses focus, the changes in the current cell still in edit mode are not saved to the grid.

    You can usually get around this by using the grid's PerformAction method to ExitEditMode and then perhaps also call grid.UpdateData to commit the current changes before you try to save.

Children