I want to attach a DataSet with parameterized query. Something like a user entering a value in a text box then hit submit button.

I have created a Text Field and a click button event something like :

```
 private void Btn_GetProjDetails_Click(object sender, EventArgs e)
    {
        string userEnteredProjId = tab3ProjIdInput.Text;
    }

```

but now don't know how to use this userEnteredProjId variable in my query?

I haven't tried the manually coding all the data-connections path. Instead added the GUI in VS2012 to add a data source. Then using this data source I have learned we can add datasets, and then use these DataSets to just drag and drop in our form. So I created a dataset and then dataset toolbox, I added my table and created a query but don't know how to use the userEnteredProjId in my query here.

![enter image description here](https://i.stack.imgur.com/BAVW1.png)