Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8873769
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T18:32:50+00:00 2026-06-14T18:32:50+00:00

I’m not so familiar with bindingsources. The short question is: How do you bind

  • 0

I’m not so familiar with bindingsources. The short question is: How do you bind a chart to a datasource so that when the BindingNavigator is changed the chart display updates?

My long winded explanation is below:

I have a datasource I have imported into C# VS 2010 Express. It is a related dataset, in that there are 2 tables (Asset, Historical_prices), where each asset has a table of related historical prices.

I simply draged and droped my datasource into the form and was able to create the view I wanted, with the help of the BindingNavigator. I dragged a DataGrid view of the Historical_prices table into the form as well, and it updates when the BindingNavigator is clicked

I then created a chart in the form, which I selected the DataSource as the historical_pricesBindingSource. It loads

I want to be able to update the chart with different Historical_prices when the BindingBavigator is changed but it currently doesnt. Any ideas?

I tried adding chart1.Update(); in the BindingNavigatorSaveItem_Click event but no dice.

Thank you kindly

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T18:32:51+00:00Added an answer on June 14, 2026 at 6:32 pm

    The Binding needs to actually be databound instead of just assigned. What you have done is essentially created a One-Time binding that occurs at Runtime during Initialization or Value Assignment.

    This means that your Target (The Chart) Only Updates One-Time, when the Source (the DataSource) is Created by the view.

    What you are looking for is a Two-Way binding. So that the Target is updated ANYTIME the Source is modified.

    To Achieve this you would generally need to bind the DataSource to the TargetProperty using the Two-Way binding syntax.

    <Toolkit:Chart x:Name="myChart" DataSource="{Binding historical_PricesDataSource, Mode=TwoWay}" />
    

    Your Data Source will need to Implement the INotifyPropertyChanged Interface though in order to notify the UI that it needs to be updated.

    The Code for Implementing INotifyPropertyChanged is:

    public event PropertyChangedEventHandler PropertyChanged = delegate{};

        // This method is called by the Set accessor of each property. 
        // The CallerMemberName attribute that is applied to the optional propertyName 
        // parameter causes the property name of the caller to be substituted as an argument. 
        private void NotifyPropertyChanged([CallerMemberName] String propertyName = "")
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    

    For More info in INotifyPropertyChanged: http://msdn.microsoft.com/en-us/library/ms229614.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I need a function that will clean a strings' special characters. I do NOT
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I am trying to understand how to use SyndicationItem to display feed which is
I have a small JavaScript validation script that validates inputs based on Regex. I
I've got a string that has curly quotes in it. I'd like to replace
In my XML file chapters tag has more chapter tag.i need to display chapters
I have a French site that I want to parse, but am running into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.