I have a DataGridView. I would like to update another cell on the same row after editing another (Enter text on one cell, the next cell (Char count) will update).
I know how to update the cell, I just dont know how to add the event listener to the DVG in code.
I have found the event CellEndEdit. The problem is that I add the DataGridView in code and am not sure how to add an event listener to it to call another function.
Something like this?
grid.CellEndEdit += onEndEdit; // calls onEndEdit anytime cells have stopped being edited
EDIT:
Someone wanted the function:
private void onEndEdit(object sender, EventArgs e)
{
}
Declare event handler:
Then create event: