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

Dinesh TawarRank #4,458 · 342 reputationPosted Jun 9, 2006, 2:49 AM EDT
textBox1.DataBindings.Add (New Binding("Text", tablename, "tablename.fieldname"))