Find my code below...
namespace csvRead{ public partial class Form1 : Form { public Form1() { InitializeComponent(); string csvToOpen = @"C:\Users\TM\Desktop\csvTest\sample.txt"; string[] csvRows = File.ReadAllLines(csvToOpen); DataTable dataOut = new DataTable(); foreach (string csvRow in csvRows) { string[] fields = csvRow.Split(','); DataRow row = dataOut.NewRow(); row.ItemArray = fields; dataOut.Rows.Add(row); } dataGridView1.DataSource = dataOut; } }}