Click here to Skip to main content
15,887,477 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Now I bind a datatable to the Chart control, the problem is that the datatable changes all the time, how can I made the chart change with datatable dynamically? Thank you.
Posted

1 solution

you can use Chart.DataBindTable method like this:
C#
Chart1.DataBindTable(myReader, "SalesName");


all things about chart binding is here:
http://blogs.msdn.com/b/alexgor/archive/2009/02/21/data-binding-ms-chart-control.aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900