mark jones

mark jones

  • NA
  • 31
  • 0

simple data bind

Jun 7 2006 4:56 PM
Can someone please help me with the following problem.  I am trying to use simple data binding but a Keep getting an error message.

The simple data bind code that I use is

f1.txtStudID.DataBindings.Add("Text", mydataset.Tables[0], "StudentID");

The code compiles ok, but am not sure that the actual binding works, as nothing shows in the bound text box to the source code ( "StudentID").

Can someone tell me where am going wrong or how to show the values in the text box on the form that corresponds with the relevant source code property.

Thanks
Mark


Answers (1)