Help with making a chart from data grid view data.


I have a data grid view that loads an excel spreadsheet. I now wish to graph the data from the data grid view on a chart, to see if the data is rubbish or not.

I don't know the proper syntax to do this…

As the first series of my graph I want to graph column 1 of the contents of data grid view as the x values, and column 2 as the y values.

This is my code that I hope could be made to work with proper syntax:

 chart2.Series["series1"].Points.AddXY (dataGridView1.Columns[1], dataGridView1.Columns[2]); 

Very eagerly awaiting responses


by Fiskerr via /r/csharp

Leave a Reply