How do I make the chart run by connecting to the Datagrid view?
well, I want the chart to run once every 10 seconds. and charts take data from dtgrid view.
For example: in 10 seconds, 10 data appear in the grid, now the chart also shows a lot of data in the grid view. so, even in the next 10 seconds if in dtgridview appears 15 data, then the chart shows how much data entered into dtgridview.
but i dont know how to make code like that.
you can make dummy data. because I also don't know where I will put the dummy data. LMAO :"(
I run the chart every 10 seconds. but it's still without data:
the code are ike this:
private void button17_Click(object sender, EventArgs e)
{
kayChart cpuData = new kayChart(chart1, 60);
cpuData.serieName = "gsm";
Task.Factory.StartNew(() =>
{
cpuData.updateChart(updateWithCPU, 10000);
});
}
so please help me
sorry my english is broke. im from indonesia btw thanks