473,387 Members | 1,453 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.

Surpress Save Changes? on a TableAdapter

I have a datagridview that I need to refesh on demand, either from a filter or just to get the latest data out of the database.

Whenever I run the refresh I get a messagebox asking to Save Changes?

How do I get rid of it?
Sep 13 '11 #1
1 1731
arie
64
Youor question is not very detailed...

I assume you have TableAdapter bound to DataGridView as in here: http://msdn.microsoft.com/en-us/library/fbk67b6z.aspx?

Maybe you have tableadapter.Update() method called somwhere where it shouldn't be? If it's in datagridview_RowsAdded or datagridview_RowsRemoved event method then it will be called every time you refresh or filter datagridview, not only when you manually modify it.
Sep 15 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: DFS | last post by:
I'm using a query as the SourceObject for a subform. When I change any of the column widths and try to close the form I'm prompted to save changes to the layout. Anyone know how to suppress...
2
by: deko | last post by:
I create an XmlDataDocument Dataset when the main form of my WinForms app opens. The user will make changes to the Dataset, and then those changes should be saved to the XML file when the code...
0
by: tafs7 | last post by:
Hello, I have a custom datagrid control that works great. But I was thinking about adding some functionality to it. Currently, I use the datagrid to display one record at a time, and with item...
1
by: jasmith | last post by:
I can't seem to get this to work! Basically, I have filterd a dataview and have bound the text boxes on my form to the dataview: dvEqDetails.Table = dsUpdateEq.Tables("tblControlData")...
4
by: keithb | last post by:
How can an application change settings in the web.config file? I need to allow users to configure SMTP email settings with functionality similar to that provided developers by the ASP.NET Web Site...
0
by: Patty05 | last post by:
I have a datagrid on a form that update properly when form loads. When the program runs and I type in/add a new row in the datagrid, it does not save the changes. Any help would be greatly...
2
by: =?Utf-8?B?RGlvZ28gQWx2ZXMgLSBTb2Z0d2FyZSBEZXZlbG9w | last post by:
Greetings to you all I have a listbox with some data loaded from the database... When I select each record, it will fill a form that I have in the same window... What I wanted is that when...
2
by: vibee | last post by:
fairly simple question but dont know how to do it...how do i prompt the user to ensure that the user wants to save changes made to an entry. thanks
11
by: gyap88 | last post by:
Hello i m using vb 2005 express to do my project. I m suppose to create a datagrid to allow user to make changes to the database. The program display the database in a datagrid where users can juz...
2
by: cj | last post by:
How is the best way to return a single record via sql query that will result in me being able to read and change the values of the individual fields as needed as I proceed through a section of...
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: 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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.