如何刷新Bindinglist [英] How Do I Refresh Bindinglist

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

问题描述

1。我使用绑定列表绑定父表单上的数据

2.当子表单更新数据时我想更新父表单上的网格

3.为此我捕获了父表单的实例从这个实例我调用bindgrid()方法

4.这个方法在调试模式下运行,在这种模式下,我看到Bindinglist没有得到刷新。在DataLayer中我做了BindingList,返回后保留了以前价值

5.我应该如何解决这个问题

1. I used Binding List which binds data on parent form
2. When child form updates data I want to update grid on parent form
3. For this I captured instance of parent form and from this instance i call bindgrid() method
4. This method runs in debug mode and in this mode i saw that Bindinglist is not getting refreshed.In DataLayer I made BindingList which on returns retains previous values
5. How should I solved this problem

推荐答案

6。使用
this

关键字


这篇关于如何刷新Bindinglist的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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