I have a Windows Form view a datagridview in my cobol program. During program execution I am editing the contents of a cell without leaving the cell, i.e. I am not hitting the Enter or Tab key.
Without leaving the cell, I am pushing a button (like a save button) outside of the datagridview on the same form. But because the CellEndEdit event did not take place, the contents of the cell in question has not changed.
So I want to invoke the CellEndEdit programatically. The following code
is giving me an error because of the missing parameters. Which parameters do I have to put here in the brackets?
RE: CellEndEdit event.
the parameters are the object that raised the event (default is sender) and the data passed from that even (default is e)
your function call should look like invoke myGrid_CellEndEdit(sender, e).