Datagridview Cell Validating Problem
Posted on 2007-08-03
I have a cell Validating sub defined for a datagridview where if a cell did not meet some requirements, I set the errortext and prevent the user from moving by having the code e.cancel = true. The reason I have a cell validating defined is because if there is an error there is another grid which I don't user to click on until the error is fixed. The e.cancel = true works fine as soon as I click tab or leave the cell. The e.cancel = true doesn't work when I am still in the cell. what I can do to prevent this. Thanks.