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 IBindingList interface has the ListChanged event that can notify the chart whenever the data is changed, which is essential for data binding.

If you don't want to bind the data, but just fill it once into the chart you can implement a procedure that copies the fields of each custom object into the respective data series of the chart.

Best Regards,
Milen

 


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