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
 
Back
Top