Philippe Renaud
asked on
How to remove all series in a Chart
Hello EE,
I am creating series inside a chart in VB.Net with a DataSource.
when user click on another button I want the chart to refresh with another Datasource. But I need to delete all series first because otherwise I am having error saying series already exists. name must be unique.
I am not sure how to remove programmatically all the series with a for Next
any ideas?
I am creating series inside a chart in VB.Net with a DataSource.
when user click on another button I want the chart to refresh with another Datasource. But I need to delete all series first because otherwise I am having error saying series already exists. name must be unique.
I am not sure how to remove programmatically all the series with a for Next
any ideas?
maybe you should create a new series and assign it to chart.series...
ASKER
but I do not wnat to see the previous series... ??
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
yup.