Fog Creek Software
Discussion Board




Welcome! and rules

Joel on Software

Windows forms does not like data binding

I've noticed that, in a Windows Forms application, a databound control only refreshes itself when it gains focus, but won't refresh itself if it's underlying datum changes!

That is, on a form, if two controls are bound to the same datum, and one of them changes it, the other one won't change until I click on it!!

This is very bad behavior, and very confusing to the user. Is there anyway around this?

Franklin
Sunday, January 09, 2005

I think you have to have a handler for CollectionChanged or DataSourceChanged to tell it what to do, which is probably as simple as calling DataBind() or something similar.

Cory Foy (cornetdesign.com)
Monday, January 10, 2005

*  Recent Topics

*  Fog Creek Home