Binding custom datasource to Charts


Author
Message
Jebarson Rajin
Jebarson Rajin
Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)
Group: Forum Members
Posts: 6, Visits: 1
Hi there,

I am trying to figure out how to bind custom datasource into nevron charts. Eg) I have a class called Employee with properties "Name, Designation, Salary". Now I have an object of type "list(of employee)". Can somebody help me to bind this to the chart.

Please don't advice to use Datatable / Dataview / Datareader. I follow a strict 3 tier layering and I need my custom objects to be binded.
Reply
Milen
Milen
Forum Member (48 reputation)Forum Member (48 reputation)Forum Member (48 reputation)Forum Member (48 reputation)Forum Member (48 reputation)Forum Member (48 reputation)Forum Member (48 reputation)Forum Member (48 reputation)Forum Member (48 reputation)
Group: Nevron Team
Posts: 48, Visits: 1

Hi Jebarson,

The Chart control supports data binding to custom data sources that implement the IBindingList and optionally the ITypedList interfaces. You can take a look at the following example in our Windows Forms demo application:

All Examples > Data Manipulation > Data Binding > Binding to IBindingList

The example binds the chart to a list of MyCustomObject instances.

I hope this helps.

Best Regards,
Milen Metodiev

 


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search