It really helped me thanks a lot but now I have another problem
I need change the information being loaded to the chart and when I change the parameters and te name of the fields change even if it's the same structureit tries to load the old data and send an exception for example
If I load this data
SELECT year, month sum(total) from myView GROUP BY year, month
I send year to the seriesDataMember, month to the SeriesTemplate.ArgumentDataMemeber and sum(total) to the SeriesTemplate.ValueDataMember and it's loads just like I want it
but then the user changes the filters and the sql query looks like this
SELECT quarter, client, sum(total) from myView GROUP BY quarter, client
And like before I send quarter to the SeriesDataMember, client to the SeriesTemplate.ArgumentDataMember and sum(total) to the SeriesTemplate.ValueDataMember but when I try to run it it sends an error that says
The field year does not exist in the current datasource
What makes me think that I have to do somenthing so the chart erases it's memory from the old datasource, I already tried setting datasource = nothing or using the method dispose but doesn't seem to work
I will really appreciate your help once again Alex
Best Regards