SqlDataSource not loading on page load

D

David Lozzi

Howdy,

I have a gridview and a sqldatasource. i need to do a little processing
before I can let the GridView run and load from the SqlDataSource. I have
the query I need already in the SelectCommand of the SDS so it runs when the
page is first loaded. Is there a way to stop it from loading and let it load
programatically? My first guess is to remove the select command from the SDS
and populate it when I want it to load, then DataBind the GridView. What do
you think?

Thanks,

David Lozzi
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,150
Latest member
MakersCBDReviews
Top