DataGridView _CellValueChanged未触发 [英] DataGridView _CellValueChanged is not firing

查看:466
本文介绍了DataGridView _CellValueChanged未触发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人

我有一个Windows应用程序,其中我使用DataGridView控件显示数据,并且在此我有一个列,如总计总计重整",例如sub1,Sub2,Sub3等

我想做的是,当用户输入Sub1到Sub3的值时,我想在总计总数"列中显示总计".
为此,我使用了_CellValueChanged,当我保留一个断点并调试以获取总值时,此事件运行良好,但如果删除断点,则不会获得任何值..
请帮帮我

最好的问候

Dear All

I have an windows application in which i''m using DataGridView control to show the data and in this i have a column as Grand Total Remaing are like sub1,Sub2,Sub3 etc

What i wanted to do is when user enters the values for Sub1 to Sub3 I want to show the Total Sum in the Grand Total Column

For this i have used _CellValueChanged ,this event is working fine when i kept a breakpoint and debug i''m getting the total value ,but if i remove the breakpoint i''m not getting any value ..
Please help me out

Best Regards

推荐答案

由_CellValueChanged使用Sub1到Sub3 I的_cellEndEdit事件
Insted of _CellValueChanged use _cellEndEdit event of Sub1 to Sub3 I


这篇关于DataGridView _CellValueChanged未触发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆