title: Passing a datarow to a form and binding the controls to it
body: <p>Many hours of internet searching has revealed no definitive answer on this question, so I thought I would re-hash it.  I need to pass a datarow to a form then bind the controls in that form to the values in the datarow.  The Datarow was created by a class method:</p>
  
  <pre><code>DataRow newRow = cusData.PrimeRecord();
  newRow["recordid"] = cusData.GetRecordID();
  newRow["recdate"] = DateTime.Now;
  newRow["lastmod"] = DateTime.Now;
  CusUpdate updateFrm = new CusUpdate(newRow);                    
  </code></pre>
  
  <p>where the PrimeRecord() method is defined with the following code:</p>
  
  <pre><code>public DataRow PrimeRecord(){    
      DataTable dt = new DataTable();
      MySqlCommand cmd = new MySqlCommand("SELECT * FROM "+tableName+" LIMIT 1",sqlConnect);
      MySqlDataAdapter da = new MySqlDataAdapter(cmd);
      da.FillSchema(dt,SchemaType.Mapped);
      DataRow dr = dt.NewRow();
      return dr;
  }
  </code></pre>
  
  <p>All my Database CRUD code has already been defined and I don't want to bind to DataAdapters, etc.  I simply want to pass the DataRow to a form, update the data then pass it to it's proper CRUD method. I will take any suggestions. Thanks!</p>