Click here to Skip to main content
16,016,557 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I use Zedgraph to draw line graphs and tried to clear and remove all the contents of zedGraphControl to be able to use it for drawing a new graph.But this is not work and gives and error :

zedGraphControl1 = new zedGraphControl1();


Also I couldn't see any method for this purpose like
zedGraphControl1.Clear();

So what should I do? Please help..
Posted

1 solution

Inside the zedGraphControl there is the GraphPane so to remove graphs from the control you can try this:
C#
zedGraphControl.GraphPane.CurveList.Clear(); 


Regards,

-MRB
 
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