Page 1 of 1

Cannot bind to non-supported datasource: Graph_

Posted: Mon Feb 27, 2017 6:26 pm
by 15048900
Good Afternoon,

I am trying to figure out what this message means:

"Cannot bind to non-supported datasource: Graph_"

All I do is add a ScrollPager to the chart and set the series. The exception stack is listed below:
at Steema.TeeChart.Styles.Series.FillFromDataSource()
at Steema.TeeChart.Styles.Series.Added()
at Steema.TeeChart.Styles.SeriesCollection.Add(Series s)
at Steema.TeeChart.Tools.ScrollPager.CopySeries()
at Steema.TeeChart.Tools.ScrollPager.SetUpScrollPager()
at Steema.TeeChart.Tools.ScrollPager.SetSeries(Series value)

I have tried to duplicate the error using a simple chart but I cannot. I have tried to compare visually in the debugger the difference between the two charts and still nothing.

The weirdest part of this is that if I pop up the TChart editor move to the Chart/Data tab and close the editor then the adding of the ScrollPager works fine after that. So the TChart data editor does "something" to make everything fine. What it does is beyond me.

Is there any way to figure out what this exception means without making a simple demo for you guys?

Re: Cannot bind to non-supported datasource: Graph_

Posted: Tue Feb 28, 2017 10:57 am
by Christopher
Hello!
biqpaulson wrote: Is there any way to figure out what this exception means without making a simple demo for you guys?
As I know you can appreciate, resolving issues in the absence of a MCVE can be tricky, to say the least.

Anyhow, the error you are experiencing is thrown at this point in the TeeChart code:

Code: Select all

            if (!Data.DataSeriesSource.TryRefreshData(this))
              throw new TeeChartException("Cannot bind to non-supported datasource: " + datasource.ToString());
which means that "Graph_" is the name of the datasource here - this must mean you have an object named "Graph_" in your code, correct? If so, of what type is it? Is it a TeeChart Series?

Re: Cannot bind to non-supported datasource: Graph_

Posted: Tue Feb 28, 2017 2:20 pm
by 15048900
That was it! Someone in our code was doing:

ThisSeries.Datasource = "Graph_"

Thanks for the help!

Re: Cannot bind to non-supported datasource: Graph_

Posted: Tue Feb 28, 2017 2:31 pm
by Christopher
biqpaulson wrote: Thanks for the help!
We got lucky. You're very welcome!