我結合域對象的屬性,使用System.Windows.Forms.Label的Text屬性DataBindings
:如何刷新Windows窗體控件的簡單綁定?
Label l = new Label();
l.DataBindings.Add(new Binding("Text",myDomainObject,"MyProperty"));
但是,當我改變域對象,標籤不反映更改。我知道對於像DataGridView這樣的複雜控件,綁定可以使用BindingSource來完成,我可以在其上調用ResetBindings,但是我找不到任何方法來更新標籤簡單情況下的綁定。