473,651 Members | 2,635 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

What event is generated when source data changes using table adapter

3 New Member
I'm new with Data Sources and am using VB.Net in VS2005, although I have VS2010 available if it matters. In previous code I just wrote queries using OleDbConnection s and OleDbCommands but wanted to learn about using Data Sources.

My requirements are pretty simple, the underlying data in the SQL database is modified from outside sources or triggers I wrote in the DB. For the purpose of this question, all I realy want to do is display in various data grids the data in the tables (no inserting, updating or deleting).

That part was pretty simple, but to refresh the data when it changes has not been easy. The command is given to me to "fill" the adapter like this:

myTableAdapter. Fill(myDataSet. myDataTable)

Problem is, I have to do it on a timer which is not good because I cannot seem to find an event which fires when the source data changes. Can someone help me with this, it seems pretty simple but I just can't locate it.

Ed
Dec 2 '10 #1
0 1050

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

Similar topics

4
1653
by: simon_s_li | last post by:
Hi, Does anyone know if there is an event that gets fired off when I select text in a cell of a table in HTML???? I know theres a onselect event but that does not work. I need this so I can run a JavaScript function. Regards
3
1569
by: Seamus Hand | last post by:
I am trying to write a component maintenance application and have tables as follows Part Part # Part Description Active (y/N) as these parts are obsoleted, ie Active changes to N, then I also have
3
1883
by: Lawlee | last post by:
How can I trigger a e-mail when new data is entered in a table without a form? Thanks
10
1904
by: Rob Nicholson | last post by:
In our application, we've added a bit of JavaScript that updates a title as the user types into a textbox. To trigger this, we patch into the "onkeyup" and "onpaste" events: FirstName.Attributes("onkeyup") = "ChangeTitle();" FirstName.Attributes("onpaste") = "ChangeTitle();" This works a treat but neither of these events fire if the user happens to enter a foreign character using the standard Windows ALT key plus numberic keypad, e.g....
9
1306
by: foo | last post by:
Hello, What event will fire when a user types data into a field and then the field loses the focus but does not fire when a field is filled programatically? I don't want the event to run when I'm initializing the field via code, but the Change Event fires regardless of how the field was changed. Thanks, Bill Nicholson
0
1171
by: Tom_F | last post by:
To comp.databases.ms-access -- I recently made changes to some field validation rules in a table. When I tried to "Copy" and "Paste Append" some records to the new version of the table, from an older version, Access reported a violation of a validation rule (though not identifying which field it was) and -- refusing to put the records in the new version of the table -- put them, instead, into a new table called "Paste Errors". I knew...
2
1629
by: Bob | last post by:
I got three related datagrid views one parent and two children of the same. The two child tables contain many thousands of records and some of the contents are bitmap files in a sql server database. The default behaviour of loading all the contents of the parent data table and also all the related data is not acceptable, its takes too long to complete. What I need to do IMHO, is to load the parent table and after its loaded, and it gets...
1
2044
by: Sam Kong | last post by:
Hi, I want to trigger an event handler when a property changes. If the property is set via a function, it's simple to trigger the attached event handler. But if the property is set directly, I don't know how. What I want is like the property in C#. var obj = new MyClass; obj.onNameChange = function() {...}
7
3128
by: Ross Culver | last post by:
I need to ensure that session variables are removed whenever someone leaves my web site. My understanding is that this should be happening automatically with the session mode set to InProc. But it's not. Every machine I'm testing this on does the same thing, but then again, everyone is using Internet Explorer 7.0 with multiple tabs active. Also, this problem just popped up, probably due to a change I've made, but I don't have a clue...
0
1171
nev
by: nev | last post by:
Hello all. I would like to place code when bindingsource is being filtered. I have tried placing it in the positionchanged and listchanged event. But, when I try to filter the bindingsource, it doesn't call the positionchanged or listchanged event. I tried placing a msgbox("Fire") statement in that two events just to check if it fires when I filter the bindingsource. When I filter the bindingsource, the messagebox doesn't pop which means that...
0
8571
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7294
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6157
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5605
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4143
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4280
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2696
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1905
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1585
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.