473,410 Members | 1,930 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,410 software developers and data experts.

GridView doesn't refresh schema after changes were made in bounded stored procedure

Hi .

I am creating an ASP.NET 2.0 web site and have the following problem :

1. I have a GridView which bound to the object data source.
2. This object data source is SQL Table adapter that I added to the
data set via IDE .
3. The method GetData of this table adapter uses existing stored
procedure on my SQL 2005 server.
4. Everything worked fine , until I made a changes to the stored
procedure ( the new result dataset records have additional fields ) .

The problem is :

The new fields don't appear in the grid .
Note : When I right click to the GetData method inside the table
adapter and select "Preview Data" , it SHOWS the new fields retrieved
by this sproc .
I tried to press "Refresh schema" in all possible places - it didn't
help .
The only way I was able to solve the issue is to create a NEW table
adapter , to add AGAIN all methods , to bind AGAIN the grid , to edit
AGAIN all fields of the grid ....
It looks like a IDE bug, or (hopefully) I am missing something ....
I may need to change the sproc in the future , so I am looking for the
way to see the changes in the grid WITHOUT doing all those steps
above .

Please advice !

Thanks in advance ,
Orit Chanukov .

Jun 26 '07 #1
1 4163
On Jun 26, 11:21 pm, Orit <oritc...@gmail.comwrote:
Hi .

I am creating an ASP.NET 2.0 web site and have the following problem :

1. I have a GridView which bound to the object data source.
2. This object data source is SQL Table adapter that I added to the
data set via IDE .
3. The method GetData of this table adapter uses existing stored
procedure on my SQL 2005 server.
4. Everything worked fine , until I made a changes to the stored
procedure ( the new result dataset records have additional fields ) .

The problem is :

The new fields don't appear in the grid .
Note : When I right click to the GetData method inside the table
adapter and select "Preview Data" , it SHOWS the new fields retrieved
by this sproc .
I tried to press "Refresh schema" in all possible places - it didn't
help .
The only way I was able to solve the issue is to create a NEW table
adapter , to add AGAIN all methods , to bind AGAIN the grid , to edit
AGAIN all fields of the grid ....
It looks like a IDE bug, or (hopefully) I am missing something ....

I may need to change the sproc in the future , so I am looking for the
way to see the changes in the grid WITHOUT doing all those steps
above .

Please advice !

Thanks in advance ,
Orit Chanukov .
Hi...

its really very annoying ... but i didn't find any problem...
okay just in case... swith to design view to html view and then again
html view to design view...
then press refresh schema in objectdatasource and then grid...

Thanks
Masudur
http://munnacs.110mb.com

Jun 26 '07 #2

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

Similar topics

2
by: Arindam Roy | last post by:
Hello, The problem mentioned below has been faced while trying to execute a stored procedure. In this case they have deployed an SP and then trying to make changes to the out parameters but...
5
by: Dick | last post by:
I have a GridView bound to an ObjectDataSource. I have a Button that calls GridView.DataBind. I want the row that is selected before the DataBind to still be selected afterwards. This happens...
4
by: Arne | last post by:
How can I update a record from a dropdownlist in a gridview? <asp:TemplateField HeaderText="Status"> <ItemTemplate> <asp:Label ID="status" runat="server"> <%#Eval("status")%></asp:Label>...
3
by: Richard Carpenter | last post by:
I have a simple winform with a customers combobox, a "get orders" button and an orders grid. Due to other requirements, I have implemented the form to allow the user to select a customer from the...
2
by: kevinpond | last post by:
I have a Gridview displaying the results of a stored procedure. The stored procedure is constantly changing so the columns displayed in the data grid are constantly changing. I'd like to give...
1
by: MikeB | last post by:
ooh boy, I hope I'm in the right place to ask this. I'm trying to do a class project that binds controls to data sources. I have a Drop-down List that I bound to the Author column of an SQL...
0
by: wizard15 | last post by:
Hello, I have some problems with my application. I have dropdownlist connected to a DataSource that retrieves data from a stored procedure (and that works fine). Below my dropdown list I have a...
4
by: Simon | last post by:
Dear reader, If I change the content of a field in an event procedure and in the same procedure I do a refresh, the refresh has no effect. The code in the event is as follows:
3
by: BD | last post by:
I'm doing some cross-platform development, under LUW 8.2 (Windows) for z/OS 8. I have some fairly complex queries which address some rather large tables. One query takes approximately 30...
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
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.