views:

84

answers:

2

Has anyone got this exception thrown when using the the controls databinding methods??

I have a data structure like this

public class ChartData
{
   public int Year {get;set;}
   public decimal Stat {get;set;}
}

Its collection is

List<ChartData> cData;

So i bind this object as

chart1.BindXY(cData,"Year",cData,"Stat");

I get same exception when using other databinding methods too

A: 

What is chart1?
Is that an external charting component?

Open the charting component dll using reflector OR see the docs for appropriate method to use.

shahkalpesh
chart1 is the .net charting control. I am using it exactly the way the doc says
Perpetualcoder
Why was this accepted as an answer?
shahkalpesh
A: 

NotImplementedException is added by Visual Studio when it creates a method stub in response to the "Generate Method Stub" context menu command on a call to non-existent class method.

Perhaps the charting control you're using simply hasn't been fully implemented, and the method you're trying to invoke is just a stub?

Simes
Chart Control is not a custom or 3rd party control. Its a new control from M$
Perpetualcoder