Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Prevent Cell Departure using CellValidated Event

$
0
0

Hello,

In a datagridview I am testing for certain user input conditions in the CellValidated event (not cellvalidating).  I would like to know if there is a way to keep focus on the active cell if certain conditions are met.  I believe that in the cellValidating event e.Cancel = True will acocmplish this, however this is not available in CellValidated.

In short, is there any way to influence cell focus in the CellValidated event?

Thank You


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>