Stop databinding on form load.

  • Thread starter Thread starter Steven Blair
  • Start date Start date
S

Steven Blair

I have a web form with a GridView and a DataSource.
As soon as the page loads, my GridView is populated.
My form has several querying capabilties, which on postback repopulates
my GridView.
What I want is to stop the data binding when my form first starts up, so
the query components are clear and no default data is returned when the
user first loads up.

Is this possible and if so, how could I go about doing this?

Regards,

Steven
 
What do you mean by overwrite?

On the Page_load there is no call to .DataBind since I am using a
GridView and a DataSource.
 
Thanks for the help so far, but the problem is I don't have a call to
DataBind in he Page_Load because I am using a SQLDataSource and a
GridView.

I need to somehow cancel this DataBinding which happens when my page is
created.
 

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

Back
Top