Passing a parameter to a table in the tableadapter

2 posts, 0 answers
  1. Jeremy Murtishaw
    Jeremy Murtishaw avatar
    86 posts
    Member since:
    Apr 2009

    Posted 16 Sep 2009 Link to this post

    Hi,
    I have a radchart bound to a SQL table, which contains data for multiple servers.  Currently, I have it hard coded to pull info for just one server.  Ideally, I would like to be able to set it up so that I can change what server info is being pulled by passing in a parameter and querying for the metrics pertaining to that server.  So I'm looking for how to setup the table in my tableadapter to be able to accept a parameter and also once the user sets the parameter how do I send it to the query in my tableadapter.

    Thanks,
    Jeremy
  2. Jeremy Murtishaw
    Jeremy Murtishaw avatar
    86 posts
    Member since:
    Apr 2009

    Posted 17 Sep 2009 Link to this post


    Nevermind I figured it out using an @value in my tableadapter query and then setting radChart.DataSource = this,tabladapter.GetData("value")
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top