Cannot bind to non-supported datasource: Graph_

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
biqpaulson
Newbie
Newbie
Posts: 93
Joined: Thu Apr 17, 2008 12:00 am

Cannot bind to non-supported datasource: Graph_

Post by biqpaulson » Mon Feb 27, 2017 6:26 pm

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?

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Cannot bind to non-supported datasource: Graph_

Post by Christopher » Tue Feb 28, 2017 10:57 am

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?
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

biqpaulson
Newbie
Newbie
Posts: 93
Joined: Thu Apr 17, 2008 12:00 am

Re: Cannot bind to non-supported datasource: Graph_

Post by biqpaulson » Tue Feb 28, 2017 2:20 pm

That was it! Someone in our code was doing:

ThisSeries.Datasource = "Graph_"

Thanks for the help!

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Cannot bind to non-supported datasource: Graph_

Post by Christopher » Tue Feb 28, 2017 2:31 pm

biqpaulson wrote: Thanks for the help!
We got lucky. You're very welcome!
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

Post Reply