To bind a TextBox to a DataSet in code, call the Add method of the DataBindings property of the
TextBox like one of the following two examples:
txtLastName.DataBindings.Add(New System.Windows.Forms.Binding("Text", dsNovelty, "Employee.LastName"))
'above is form-designer-generated format, below is equivalent:
txtLastName.DataBindings.Add("Text", dsNovelty, "Employee.LastName")
In the above example, txtLastName is a TextBox, dsNovelty is a DataSet, Employee is the name of a
DataTable in that DataSet, and LastName is the name of the field in that DataTable that we want displayed
in the TextBox.