DataBound values of an object for TextBox

1

How can I make a databound of an object into the form fields?

The idea is to fill in the "textBox1" field automatically to update the "Name" value of the objClient automatically.

I know that direct assignment works.

objCliente.Nome = textBox1.Text;

But DataBound is giving error:

textBox1.DataBindings.Add("Text", objCliente.Nome, "Text");
    
asked by anonymous 20.03.2018 / 13:52

0 answers