February 16th, 2010, 11:58 PM
newbie WinForms DataBinding question
I’m doing my first project with WinForms, and I’m trying to get the DataBinding working. There’s no database in my project, but I’d like to bind some of the TextBoxes to runtime object properties. On the web I found the following line of code which “does it”:
This is a viable approach for me. However, my question is – can data binding to runtime object properties be done during design time (without writing code) ? If so, how?
textBox2.DataBindings.Add(new Binding("Text", this.myPerson, "LastName"));
Any suggestions references and insight is appreciated!
Tags for this Thread
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!