Reputation: 61
I am trying to make a cellEditEnd event method, in which I need the cell, that was edited. I could use the selectedCell function, but I would like to know how if there is a way to get the cell object inside the method.
Upvotes: 0
Views: 444
Reputation: 361
You can handle the CellEndEdit event : https://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.cellendedit(v=vs.110).aspx
Which takes a DataGridViewCellEventArgs as a parameter, this should provide you with the Row and Column index of the cell you need.
Upvotes: 1