raise cellvaluechanged tradition modifying control datagridview


i have datagridview (winforms) i have tangible tradition editingcontrol subsequent datagridviewtextboxeditingcontrol wholly allows numeric characters.



i need lift cellvaluechanged eventuality datagridview any user press key, nonetheless default intrepidity lift eventuality wholly book completed.



how i lift eventuality any pivotal pressed?



public category datagridviewnumerictextboxeditingcontrol : datagridviewtextboxeditingcontrol
{
stable overrule vacant onkeypress(keypresseventargs e)
{
e.handled = char.isletter(e.keychar);
(!e.handled)
raisedatagridviewcellvaluechanged(); // <-- any way?
}
}


update:



i've found workaround, nonetheless i'm certain it's good solution:



public category datagridviewnumerictextboxeditingcontrol : datagridviewtextboxeditingcontrol
{
stable overrule vacant onkeypress(keypresseventargs e)
{
e.handled = char.isletter(e.keychar);
(!e.handled)
{
editingcontroldatagridview.endedit();
editingcontroldatagridview.beginedit(false);
}
}
}


Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?