gridview cannot set datasource

  • Thread starter Thread starter Deere
  • Start date Start date
D

Deere

I have a gridview where I was using datasource="sqldatasource1". I
deleted it to use code behind. I then wanted to go back to datasource
so I typed back in datasource="sqldatasource1" but now I get the
error "The 'DataSource' property cannot be set declaratively."
Show me the way...thanks
 
Deere,

Can you try and set the datasource in the designer?

Hope this helps,


Steve
 
My gridview doesn't show up in designer.


Deere,

Can you try and set the datasource in the designer?

Hope this helps,

Steve






- Show quoted text -
 
Found my problem, its DataSourceID= instead of DataSource= ....
thanks for the reply.. it made me insert a gridview from design and
see it.
 

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