/// <summary> /// Example where there are zero issues with reading in a delimited file /// into a strong typed list then finally into a DataTable. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void PerfectWorldExampleDataTableButton_Click(object sender, EventArgs e) { var fileOperations = new FileOperations(); var fileName = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Import1.txt"); _bindingSource.DataSource = ListHelpers.ConvertToDataTable( fileOperations.ReadCustomersPerfectWorld(fileName)); dataGridView1.DataSource = _bindingSource; }