title: Linking Textboxes to a dataset using a BindingSource
body: <p>This is the section of the form I am working on:</p>
  
  <p><img src="https://i.stack.imgur.com/C1ZYZ.png" alt="enter image description here"></p>
  
  <p>The following code links the BindingNavigator to the dataset using a bindingSource. Can I use this binding source to hook up the two text boxes to the data? </p>
  
  <p>Do I simply need to use a property of the textboxes or is this more involved?</p>
  
  <p>i.e when the form loads the first record's fields "Work Phrase" and "Description" will be displayed and when I scroll using the navigator the values in these boxes will change accordingly.</p>
  
  <pre><code>public partial class uxRevisionHelperForm : Form
  {
  
      public SqlCeConnection conn = new SqlCeConnection(ConfigurationManager.ConnectionStrings["WindFormAppRevisionHelper.Properties.Settings.DefinitionsDBConnectionString"].ConnectionString);
      BindingSource definitionsBindingSource = new BindingSource();
  
      public uxRevisionHelperForm()
      {
          InitializeComponent();
          uxDescriptionTextBox.AutoSize = true;
          this.hookUpBindingNavigator();
      }
  
      public void hookUpBindingNavigator()
      {            
  
          SqlCeDataAdapter da = new SqlCeDataAdapter(new SqlCeCommand("Select * From tb_Definitions",conn));
          DataSet ds = new DataSet("Helper");
          ds.Tables.Add("DefinitionsTable");
          da.Fill(ds.Tables["DefinitionsTable"]);
  
          // Assign the BindingSource.
          this.uxBindingNavigator.BindingSource = this.definitionsBindingSource;
          this.definitionsBindingSource.DataSource = ds.Tables["DefinitionsTable"];
  
      }
  </code></pre>