I have the following code snippet that reads a csv file with data and stores it in an array.
private static void ProcessFile() { var lines = File.ReadLines("Data.csv"); var numbers = ProcessRawNumbers(lines); ****Some variables I use later on**** var rowTotal = new List<double>(); var squareRowTotal = new List<double>(); }
I would like to do the same by inserting data into a DataGridView using C # and not reading the csv file.
My csv file looks like this:
2,5,6,8,4 5,8,3,5,7 7,7,9,3,5 7,8,4,5,6
I would like to enter the above data into rows and columns in a DataGridView and handle the rows and numbers. I'm not sure how to do this, could you help me?
source share