Databinding by code

  • Thread starter Thread starter Michael Meier
  • Start date Start date
M

Michael Meier

Dear Ng,

in a WinForm I declared a Dataset which contains one DataTable.
Now I am trying to bind the datafields to textboxes and an navigation
control.

What do i have to do??

MfG
Michael
 
MyTextBox.DataBindings.Add("Text",TheTable or whatever,"TheProperty")

That is all, assuming that you want to do it to the Text property from the
textbox.

Be aware that everything that is done by the designer is forever as code in
your program so you can see it there.

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top