473,670 Members | 2,574 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Scelta migliore

Vorrei capire se e quando, con un DataGrid ed un DataSet, è meglio
utilizzare il DataAdapter e quando i comandi diretti
myCommand.Execu teNonQuery();
Ho capito che il DataAdapter consente di effettuare operazioni direttametne
sul DataSet e sul DataGrid, e di aggiornare la Tabelle del DataBase solo
quando necessario (utilizzando appunto il DataAdapter.Upd ate(DataSet);)

Mentre il command viene eseguito immediatamente con il comando Execute e
successivamente devono essere ricaricati i dati nel DataGrid per
visualizzare le modifiche applicate alla Tabella del DataBase
Ogni singola soluzione in che situazione viene applicata?
Nov 18 '05 #1
0 1102

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

Similar topics

0
1038
by: | last post by:
Vorrei capire se e quando, con un DataGrid ed un DataSet, è meglio utilizzare il DataAdapter e quando i comandi diretti myCommand.ExecuteNonQuery(); Ho capito che il DataAdapter consente di effettuare operazioni direttametne sul DataSet e sul DataGrid, e di aggiornare la Tabelle del DataBase solo quando necessario (utilizzando appunto il DataAdapter.Update(DataSet);) Mentre il command viene eseguito immediatamente con il comando...
0
326
by: | last post by:
Vorrei capire se e quando, con un DataGrid ed un DataSet, è meglio utilizzare il DataAdapter e quando i comandi diretti myCommand.ExecuteNonQuery(); Ho capito che il DataAdapter consente di effettuare operazioni direttametne sul DataSet e sul DataGrid, e di aggiornare la Tabelle del DataBase solo quando necessario (utilizzando appunto il DataAdapter.Update(DataSet);) Mentre il command viene eseguito immediatamente con il comando...
6
2002
by: TC | last post by:
Hi. I write a program in c language that read a text file and extrapolate the word. for all word the program calculate the number of the times that word is present in the text. The problem is the REALLOC that on my pc at times it produces error. Someone can help me for this error? Thank you /*Inclusione librerie*/
3
1978
by: TC | last post by:
I'm not a C programmer. This is a good C? how check the return value of getch or scanf? and how check for the \n at the end of the text read? FEOF do not return true if the file (text file) is finish? if no what use? /*Inclusione librerie*/ #include <stdio.h>
2
1257
by: lorologiodoro | last post by:
Ciao a tutti, sto sviluppando una jsp che mostra all'utente una serie di celle sulle quali ad ogni evento onclick() eseguo la routine SelezionaSpazio passando gli id sia della cella che dei livelli superiodi di raggruppamento su cui ad ogni click devo sommare o sottrarre 1.
2
1135
by: Matteo Migliore | last post by:
Hi! I'm looking for an Atlas sample to use MSN Messenger on a ASP.NET application. The major problem is how to catch asynchronously answers from user. I hope to be clear :-) Thx!
4
3072
by: Matteo Migliore | last post by:
Hi. I've a problem with parent-child circular references. Suppose have two classes, Person and Course: -------------------------- public class Person{ public Person(string name, Course course){ this.name = name; this.course = course;
4
1771
by: Matteo Migliore | last post by:
Hi. I need a regular expression to extract all tag A from HTML code. I need the href and text as two disting objects. Suggestions? Thx! ;-) Matteo Migliore.
6
1761
by: Matteo Migliore | last post by:
Hi. I'm looking for a WinForms code translator from C# to VB.NET and vice-versa. Not a website service :-). Something like this, but standalone version: http://www.carlosag.net/Tools/CodeTranslator/Default.aspx
0
8384
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8659
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...
1
6212
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
5683
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
4208
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
4388
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2799
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
2037
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1791
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.