Hey everyone,

I have configured a datasource using the sqlDataSource configuration wizard. The gridview populates at runtime, however, I am trying to populate the gridview using a button click instead.

Does anyone know the code for this?

I have tried Gridview1.Databind(); but it doesn't work. I have also tried


myDataSource1.Databind(); but that doesn't work either.

**NOTE** that through the configuration wizard there are 3 parameters set up. They are all tied to controls on the webform. They worked when I set default values but I can't test whether or not they are passing properly off of a text box because I am having issues with the button click.