问题描述
我在窗体上有两个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 DataGridView
s through a SQL query and data binding. Now each of these DataGridView
s 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 DataGridView
s have finished their data binding, not just any one of them.
Could anyone suggest an elegant way to monitor this?
推荐答案
这篇关于多个DataBindingComplete事件处理程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!