title: Csvhelper writer datasourcs
body: <p>I am using csvhelper to import certain fields in a datagridview with no issues and then I have other columns added that has user imputed data. That part works.
  Now when I try to write the datagridview to a new csv file and I get no data just headers that I have from the class. So where am I going wrong?</p>
  <p>My write to code:</p>
  <pre><code>private void SchedSaveBtn_Click(object sender, EventArgs e)
  {
      var records = new List&lt;WriteCsvschedule&gt;
      {             
          new WriteCsvschedule { EmpName = &quot;1&quot;, EmpPayrollID = &quot;2&quot; },
      };
  
      using (var writer = new StreamWriter(@&quot;c:\rcs\export\sched.csv&quot;))
      using (var csv = new CsvWriter(writer, CultureInfo.InvariantCulture))
      {
          csv.WriteRecords(records);
      }            
  }
  </code></pre>
  <p>and my class:</p>
  <pre><code>public class WriteCsvschedule
  {
      [Index(0)]
      public string EmpName { get; set; }
      [Index(1)]
      public string EmpPayrollID { get; set; }
      [Index(2)]
      public string JobName { get; set; }
  }
  </code></pre>