1
How can I databound an object to form fields?
The idea is to always fill in the "textBox1" field to update the "Name" value of the objClient automatically.
I know by direct assignment it works.
objCliente.Nome = textBox1.Text;
But by Databound is giving error:
textBox1.DataBindings.Add("Text", objCliente.Nome, "Text");
try
textBox1.DataBindings.Add("Text", objCliente, "Nome");
– Rovann Linhalis
This one using WPF?
– Marcos Brinner
I’m not in WPF.
– Daniel Fernandes
What is the type of project then? Only C# is not enough to be sure of the answer
– Leandro Angelo
I am using wpf
– Daniel Fernandes