473,788 Members | 2,868 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DataSet and BindingSource

Hello!

I'm reading in a book about .NET and here they something that sound wrong
but I'm not abolutely sure.
They say that a DataSet contains methods to update data in the database is
that really correct ?
I have looked in the documentation for DataSet and it seems that there are
no methods or propery
that can be used to update the database.
Do you agree with me ?

I'm pretty sure that it's the TableAdapter that has the responibility to
update the database.
//Tony

Jun 27 '08 #1
1 1830
Can you quote the source and author or provide context, the author may be
referring to something more.
--

Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99
-------------------------------------------------------


"Tony Johansson" <jo************ *****@telia.com wrote in message
news:Sv******** *********@newsb .telia.net...
Hello!

I'm reading in a book about .NET and here they something that sound wrong
but I'm not abolutely sure.
They say that a DataSet contains methods to update data in the database is
that really correct ?
I have looked in the documentation for DataSet and it seems that there are
no methods or propery
that can be used to update the database.
Do you agree with me ?

I'm pretty sure that it's the TableAdapter that has the responibility to
update the database.
//Tony
Jun 27 '08 #2

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

Similar topics

6
10905
by: Altman | last post by:
I am playing around with making a dataset with the designer in vb.net 2005. I realize you can add parameters to select statement and then filter off of those parameters. What I would like to do is to take the dataset that the designer made and add the whole where clause to it at run time. Is this possible?
2
2340
by: Scotty | last post by:
I get stuck to write an update, insert and delete command, i am looking for some help to start Whats the best way to update 2 tables toe the database (Access) below my code used to load my data.(2 tables) Do someone has a good sample code to help me? Many thanks in advance, Marc.
3
2944
by: Martin Arvidsson | last post by:
Hi! I have a dataset, BindingSource, tablaAdapter. I issue a BindingSource.AddNew() After that i want to set a value in the dataset with table name projects and fieldname projectsub to a specific value. (The value differs from time to time) This value is not show on the Form (Where the rest of the fields are
5
2745
by: bob | last post by:
Hi, My app needs to read a text file, compare the data to that already stored in the DB and generate a text file of the differences. The UI displays the text file data and the db data in a series of Datagridviews. Piclk a row in the text file master table dgv and the other dgvs move to the appropriate records so you can eyeball the differences before generating the difference file.
1
1474
by: =?Utf-8?B?cmFuZHkxMjAw?= | last post by:
I'm working in Visual Studio 2005. I'm looking at two tables in the Data Set Designer. There's a relation between the two tables that lists 7 matching columns. Works great. One of the key columns from each table is called "Team". Valid values are F1 through F7, and when they match, the result set works exactly like you'd think it would. The problem is that somebody decided to put in a "Team" value of ALL, which
1
8118
by: Daniel Jeffrey | last post by:
..Net 2.0 VStudio 2005 C# I know this is going to seem like a strange question, as even I am sure I have missed something - but I cant find it. I want a simple event on any of the objects (BindingSource, DataSet, DataTable) that fires when data in a bound control changes.
8
2558
by: shark | last post by:
Hi. I have DataGridView bound to my dataset through bindingsource component. My dataset is filled on separate thread. While this thread is working I receive "Cross-thread operation not valid" exception because bindingsource tries to update grid cells from another thread (invoke is required). How to handle such scenario ? Thanks
0
870
by: Tony Johansson | last post by:
Hello! Here I display all the existing rows in the products table in the database using the TableAdapter fill method to put these rows into the DataTable object. private void quryButton_Click(object sender, EventArgs e) { NorthwindDataSetTableAdapters.ProductsTableAdapter productsTA = new NorthwindDataSetTableAdapters.ProductsTableAdapter();
4
5936
by: John Sheppard | last post by:
Hello there I was wondering if anyone could help me, I am trying to pass a typed dataset to a dialoged child form by reference. I have binding sources sitting on the child form. So to refresh them I just set their datasource. I am guessing this is probably what is causing the problem. Is there a better way to do this? Anyway this all works happily and things show up when the record already exists but I have 2 problems ; 1) When I add...
3
1943
by: =?Utf-8?B?Z3JlYXRiYXJyaWVyODY=?= | last post by:
Here is my code. Does anyone know why when i reopen the table to view the data, none of the rows have been written? DownloadFileDataSet.DownloadFileRow MainTableRow = (DownloadFileDataSet.DownloadFileRow)downloadFileDataSet.DownloadFile.NewRow(); MainTableRow.Date = DateTime.Now; MainTableRow.RowID = gDownloadFileTableGUID; MainTableRow.FileName = sFileName;
0
9656
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10366
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10175
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10112
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7518
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
6750
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
5536
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4070
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
2
3675
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.