复选框状态不会立即更改 [英] Checkbox state not getting changed immediately

查看:105
本文介绍了复选框状态不会立即更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Windows窗体中有多个复选框。基于此复选框的选择,我已使用相应的参数调用存储过程,然后我循环查询结果并将该结果分配给集合对象。最后,我已将Collection作为数据源分配给DataGridView控件。那个时候绑定数据源需要太多时间。



假设,如果一个复选框未经检查。如果我要检查该复选框,那次我在CheckedChanged事件本身中执行了上述过程。因此,在上述过程完成后,复选框处于未选中状态。在完成招标过程后,只有那个复选框被检查。



如何解决这个问题?



我想要的立即显示选中显示的复选框。

解决方案

请提交更多信息!! 


I have a multiple check boxes in my Windows forms. Based on the Selection of this checkbox i have Called the Stored procedure with corresponding arguments then i have looping the query result and assigned that result into collection object. Finally i have assigned that Collection to DataGridView control as datasource. That time it takes too much time to binding the Datasource.

Assume, if one checkbox is in unchecked. if i'm going to Check that checkbox, that time i have doing the above mentioned process within that CheckedChanged event itself. So, upto the above process is getting completed the checkbox is in unchecked mode. After completing the biding process only that checkbox getting Checked.

How to resolve this?

I want to immediately display the checkbox as checked in display.

解决方案

Please Submit more information !!


这篇关于复选框状态不会立即更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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