This is a migrated thread and some comments may be shown as answers.

Passing a parameter to a table in the tableadapter

1 Answer 94 Views
Chart (obsolete as of Q1 2013)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jeremy Murtishaw
Top achievements
Rank 1
Jeremy Murtishaw asked on 16 Sep 2009, 05:59 AM
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

1 Answer, 1 is accepted

Sort by
0
Jeremy Murtishaw
Top achievements
Rank 1
answered on 17 Sep 2009, 03:57 PM

Nevermind I figured it out using an @value in my tableadapter query and then setting radChart.DataSource = this,tabladapter.GetData("value")
Tags
Chart (obsolete as of Q1 2013)
Asked by
Jeremy Murtishaw
Top achievements
Rank 1
Answers by
Jeremy Murtishaw
Top achievements
Rank 1
Share this question
or