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
725
Cancel LostFocus in an UltraGrid and go back to edit mode
posted

I want to cancel the LostFocus in the UltraGrid when the user is about to abandon the grid (which is in edit mode) and the info he has typed in it is not right. I want to unable him to leave the grid until he has completed the requested dates, numbers, etc...

 Ideally I would like not to let him leave the row he is in until all the cells are completed...

how can I do that?

 

Parents
No Data
Reply
  • 469350
    Offline posted

    Try using the BeforeExitEditMode to do your cell validation. Cancelling this event should keep the user in the cell. For an entire row, you might also have to handle the grid's Validating event, but it depends on whether there are columns in the row that don't enter edit mode.

Children