Hello.
I have a grid and a button on a form. The user enters quatities in the grid and clicks the button to advance the screen.
Unless the user manually moves focus off of the cell that was just edited the underlying datasource is not upated. So if the user changes a quantity and clicks the buttons, the underlying datasource is not updated.
How can I make the datasource update when the focus leaves the cell/grid?
Thanks in advance,
Mike
The grid commits the changes to the underlying data source when it loses focus. So if you click a toolbar button or some other button that does not take focus away from the grid, you have to force an update.
You can call the Update method on the grid's ActiveRow if you know there is only one row with pending changes. Or you can update the entire grid by calling grid.UpdateData().