Datagridview call cellvalidating

Currently, I'm just manually calling my validation logic before I call End Edit, but it seems like I'm missing something. I guess I could call On Cell Validating, but then I'd be worried I'm missing some other event. Keys) As Boolean Dim key As Keys = (key Data And Keys.

So you can use Cell Validating event of Data Grid View to validate integer type column as well as other. Cell Validating Dim cell As Data Grid View Cell = Data Grid View1. If I need the user to have time to complete the entry, then I sometimes include a timer that is (re-)started on each Value Changed and executes the validation a short time later. Data Grid Cell validation Cell; private void data Grid View1_Cell Value Changed(object sender, Data Grid View Cell Event Args e) // validation timer set to (250 ms ish) private void timer1_Tick(object sender, Event Args e) I generally prefer to prevent the user from entering an invalid value by always using Combos, Up Down number thingies with max min set, etc. :) I must agree with you on how the Validation events operate. When this event is canceled in virtual mode, the Cell Value Pushed event will not be raised.Handle the Cell Validated event to perform post-validation processing.