Click here to Skip to main content
15,889,335 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have enabled a CellValidating event within a DataGridView. When I enter a cell that has a value of, say, A, make a change to B, and then exit the cell, the event fires. However, when I look at the data in the cell, I get the value before I made the change, A. If I move to another cell, then come back to the first cell and change the B to C, when I leave it this time, I get the value I changed to to the first time, B. How can I get the value after the change to validate?

Thanks, Eddie
Posted
Updated 5-Feb-11 9:49am
v2

1 solution

 
Share this answer
 
Comments
Eddie Niebruegge 5-Feb-11 16:14pm    
Thanks, OriginalGriff, that worked great.

Eddie

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900