关于datagridview控件的事件处理

时间:2023-01-06 00:05:02

i want to raise the datagridview's CellValueChanged() event in the textbox's KeyPress() event.

我想在文本框的KeyPress()事件中提升datagridview的CellValueChanged()事件。

can anybody help me?

有人能帮助我吗?

thanx....

谢谢....

1 个解决方案

#1


1  

Try to invoke ValueChangedEventHandler() in the KeyPressEventHangler(). Or its considered to be a bad practise...

尝试在KeyPressEventHangler()中调用ValueChangedEventHandler()。或者它被认为是一种不好的做法……

#1


1  

Try to invoke ValueChangedEventHandler() in the KeyPressEventHangler(). Or its considered to be a bad practise...

尝试在KeyPressEventHangler()中调用ValueChangedEventHandler()。或者它被认为是一种不好的做法……