473,387 Members | 3,821 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

gridview cannot set datasource

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

Jun 4 '07 #1
3 5730
Deere,

Can you try and set the datasource in the designer?

Hope this helps,
Steve

"Deere" <me******@gmail.comwrote in message
news:11*********************@k79g2000hse.googlegro ups.com...
>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

Jun 4 '07 #2
My gridview doesn't show up in designer.
On Jun 4, 5:46 pm, "PlatinumBay" <stevan...@community.nospamwrote:
Deere,

Can you try and set the datasource in the designer?

Hope this helps,

Steve

"Deere" <meh47...@gmail.comwrote in message

news:11*********************@k79g2000hse.googlegro ups.com...
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- Hide quoted text -

- Show quoted text -

Jun 4 '07 #3
Found my problem, its DataSourceID= instead of DataSource= ....
thanks for the reply.. it made me insert a gridview from design and
see it.
On Jun 4, 6:07 pm, Deere <meh47...@gmail.comwrote:
My gridview doesn't show up in designer.

On Jun 4, 5:46 pm, "PlatinumBay" <stevan...@community.nospamwrote:
Deere,
Can you try and set the datasource in the designer?
Hope this helps,
Steve
"Deere" <meh47...@gmail.comwrote in message
news:11*********************@k79g2000hse.googlegro ups.com...
>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- Hide quoted text -
- Show quoted text -- Hide quoted text -

- Show quoted text -

Jun 4 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: | last post by:
Hello, Does anyone have an idea on how I can filter the data in the gridview control that was returned by an sql query? I have a gridview that works fine when I populate it with data. Now I...
4
by: Jim Katz | last post by:
I have an application that updates a strongly typed data set at run time. I'd like to dynamically create a table that connects to a run time data table. For displaying the data, this works well. ...
3
by: Jeff | last post by:
Hey asp.net 2.0 In the source I posted below, there is a GridView (look at the bottom of the script): <asp:GridView ID="gvwOnline" runat="server"> </asp:GridView> I'm trying to assign a...
1
by: mitchman10 | last post by:
My Time table has TimeID,Employee,PayPeriod,ChargeCodeID,Hours My Chargecode table has ChargecodeID,c_Text I need an Editable datagrid that will show the TimeID,Employee,PayPeriod,C_Text in a...
1
by: rn5a | last post by:
I was using a DataView to bind records from a DB table to a DataGrid using the following code: Dim sqlDapter As SqlDataAdapter Dim dSet As DataSet Dim dView As DataView sqlDapter = New...
8
by: =?Utf-8?B?TWlrZSBSYW5k?= | last post by:
I am trying to get a list of files from a specified directory using the System.IO namespace classes, and then use that list as the datasource for a GridView. I have been able to do this...
4
by: GaryDean | last post by:
I have an objectdatasource reading a dataset and I have a gridview using that objectdatasource (at design time). It binds fine but I need to clear it. myGridView.DataSource = null:...
4
by: mohaaron | last post by:
This seems like it should be simple to do but for some reason I have been unable to make it work. I would like to databind a SqlDataSource to a GridView during the click event of a button. This...
3
by: Peter | last post by:
I have a GridView which is populated by List<ofObjects> Does anyone have example of how to sort the columns of this GridView? I have found examples without DataSourceControl but these use...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.