如何在运行时更新单元格值 [英] how to update cell value at runtime

查看:62
本文介绍了如何在运行时更新单元格值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我有一个数据网格视图,其中包含三列,即数量,费率,总计.现在我希望当我编辑任何行的数量或比率时,该特定行的总值得到更改.
请帮助我.....

Hi, I have a datagridview with three column i.e. Quantity,rate,total. Now i want that when i edit quantity or rate of any row total value of that particular row get changed.
plz guys help me out i m need.....

推荐答案

最好的方法是将datagridview绑定到模型.
当您编辑某些内容时==>进行计算=>更新模型=>该视图将通过绑定自动更新.
The best approach would be to bind the datagridview to a model.
When you edit something => make the calculations => update the model => the view will be updated automatically through binding.


这篇关于如何在运行时更新单元格值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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