You can bind the datasource of the gridview on button click.
I mean, in the button click routine, Add code similar to
Gridview1.DataSource = SqlDataSource1;
GridView1.DataBind();
And remove the DataSource part from the GridView definition/declaration in
the aspx page.
Hope this helps.
--------------------
>From: "Hrvoje Vrbanc" <hrvojev@recro.hr>
>Subject: SqlDataSource control activating on button click
[quoted text clipped - 33 lines]
>Thank you in advance,
>Hrvoje

Signature
Thank You,
Nanda Lella,
This Posting is provided "AS IS" with no warranties, and confers no rights.
Hrvoje Vrbanc - 07 Dec 2007 09:08 GMT
Thank you very much, Nanda!
Hrvoje
> You can bind the datasource of the gridview on button click.
> I mean, in the button click routine, Add code similar to
[quoted text clipped - 46 lines]
>>Thank you in advance,
>>Hrvoje