Cellvalidating event vb net
however as the user doesnt navigate between cells or rows in the datagridview.
just enters data in a cell in the datagridview and then clicks a save button the cellvalidating event doesnt get fired.
My main objective is to make the Enter key not move to the next row in the grid. If that doesn't work, you can create a Key Press event on the cell and emulate pressing Enter on the cell, but that may mess with the users UI, just put the carat back where it was.
I still want the enter key to validate and end edit mode.
Here I'm with this trying to figure out how to enable a button I disabled and the right place for me was like the Row Validated but as I saw with the version 419 today, The Row Validated is called only once the Grid View loose focus however it's called Row Validated hence it should be fired when the row is validated. I am afraid I am not able to understand your scenario very well.
Previously i was having a problem when the user click on the Combo Box but doesn't click the mouse so the Combo Box change commited event doesn't run therefore not getting the row, somebody replied on this forum to say i should declare and put a Combo Box On Drop Down event handler which i put and successfully do it.
Still if the user doesn't event click on the first cell which has this combo Box it doesn't really restrict it.
I used Q3 2010 SP1 (2010.3.10.1215) version for my tests.
However, looking at your screenshots I see that you have a quite complex scenario, and it is possible that there is something specific which causes the reported issue.
Search for cellvalidating event vb net:
To do that, I need a sample project, which demonstrates the issue.