Highlighted
Absent Member.
Absent Member.
740 views

CellEndEdit event.

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 
invoke myGrid_CellEndEdit().
is giving me an error because of the missing parameters. Which parameters do I have to put here in the brackets?
0 Likes
1 Reply
Highlighted
Absent Member.
Absent Member.

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).

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.