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
 
Found my problem, its DataSourceID= instead of DataSource= ....
thanks for the reply.. it made me insert a gridview from design and
see it.
 
Back
Top