多个DataBindingComplete事件处理程序

多个DataBindingComplete事件处理程序

本文介绍了多个DataBindingComplete事件处理程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在窗体上有两个DataGridView 控件(实际上我有很多控件,但出于问题的目的,让我们保持简单).

我通过SQL查询和数据绑定来填充这些DataGridView.现在,完成绑定后,每个DataGridView都将触发DataBindingComplete事件.我有一个事件处理程序来处理所有这些事件.我需要一种方法来了解所有DataGridView何时完成了它们的数据绑定,而不仅仅是它们中的任何一个.

I have two DataGridView controls on my form (actually I have plenty but let''s keep it simple for the purpose of the question).

I''m populating these DataGridViews through a SQL query and data binding. Now each of these DataGridViews will fire a DataBindingComplete event when the binding is done. I have one event handler that handles all of these events. I need a way to know when all of the DataGridViews have finished their data binding, not just any one of them.

Could anyone suggest an elegant way to monitor this?

推荐答案


这篇关于多个DataBindingComplete事件处理程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 13:58