Strongly typed databinding in WinForms – aka. no more magic strings!
Posted on July 24, 2013
I’ve been working on a WinForms project for a while and I’m getting progressively more tired of the magic strings used when doing databinding. (See MSDN documentation here) The problem is that the datamember of the datasource being bound to the control is a plain old System.String: e.g: lblName.DataBindings.Add(“Text”, myViewEntity, “UserName”); I can live with… Continue Reading Strongly typed databinding in WinForms – aka. no more magic strings!