Hi,
I have a ultrawingrid bound to dataset. I save the changes in BeforeCellUpdate event and I have a validation toolbar that validates the data in the grid.
Clicking on the validation bar does not fire BeforeCellUpdate and not even leave event of the grid which actually it should do, and that is the problem because the grid have not yet accepted the data and the validation button is throwing error based on the old data.
Please tell me which event should I catch so that when the user clicks on the validation bar the grid must accept the data that is edited in any of the cells, as of now I have to click in any other cell to save the newly edited data in the currently focused cell.
thanks,
Mandeep.
thanks Matt.
It sounds like your toolbar is not taking focus, which means that the grid thinks it still has focus and has not left the cell. You could try calling grid.ActiveRow.Update(), or possibly grid.PerformAction(UltraGridAction.ExitEditMode);
-Matt