Click here to Skip to main content
15,888,816 members
Home / Discussions / C#
   

C#

 
Generalc# Listbox help Pin
John Baird5-May-04 4:48
John Baird5-May-04 4:48 
GeneralRe: c# Listbox help Pin
Heath Stewart5-May-04 4:59
protectorHeath Stewart5-May-04 4:59 
GeneralRe: c# Listbox help Pin
John Baird5-May-04 9:21
John Baird5-May-04 9:21 
GeneralRe: c# Listbox help Pin
Heath Stewart5-May-04 9:31
protectorHeath Stewart5-May-04 9:31 
GeneralCreating & Using DLL's Pin
Lakshmikanthan5-May-04 4:42
Lakshmikanthan5-May-04 4:42 
GeneralRe: Creating & Using DLL's Pin
Heath Stewart5-May-04 4:55
protectorHeath Stewart5-May-04 4:55 
GeneralDiffgrams and Web Services Pin
MrJJKoolJ5-May-04 3:51
MrJJKoolJ5-May-04 3:51 
GeneralRe: Diffgrams and Web Services Pin
Heath Stewart5-May-04 4:13
protectorHeath Stewart5-May-04 4:13 
You could do this with a diffgram, but the DataSet and DataAdapter derivatives already support changes. Lets say that your client made changes to a DataSet it original got from a web service. To send the changes call DataSet.GetChanges to get just the changes (optionally, but decreases bandwidth consumption) and then pass the DataSet back to the web service. The web service could call DataAdapter.Update on the DataSet and optionally return the DataSet back to the client (in case there were changes made by other clients, etc.

Just be sure you don't call AcceptChanges otherwise all change information is lost. DataAdapter.Update does this automatically after updating the database. The DataAdapter should have all four command properties defined, and it's common to combine an INSERT and SELECT statement (separated by a semi-colon (;)) so that any auto-generated information (or default values) are included in the DataSet.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Diffgrams and Web Services Pin
MrJJKoolJ5-May-04 5:08
MrJJKoolJ5-May-04 5:08 
GeneralRe: Diffgrams and Web Services Pin
Heath Stewart5-May-04 5:16
protectorHeath Stewart5-May-04 5:16 
GeneralRe: Diffgrams and Web Services Pin
MrJJKoolJ5-May-04 5:23
MrJJKoolJ5-May-04 5:23 
GeneralRe: Diffgrams and Web Services Pin
Heath Stewart5-May-04 5:25
protectorHeath Stewart5-May-04 5:25 
GeneralRe: Diffgrams and Web Services Pin
MrJJKoolJ5-May-04 5:51
MrJJKoolJ5-May-04 5:51 
GeneralRe: Diffgrams and Web Services Pin
Heath Stewart5-May-04 7:13
protectorHeath Stewart5-May-04 7:13 
Generalsharing new Instance of class across the application Pin
Adi Narayana5-May-04 3:08
Adi Narayana5-May-04 3:08 
GeneralRe: sharing new Instance of class across the application Pin
Stefan Troschuetz5-May-04 3:32
Stefan Troschuetz5-May-04 3:32 
GeneralPopulating a combobox with data from a rondom access file Pin
mikeyb255-May-04 3:06
mikeyb255-May-04 3:06 
GeneralRe: Populating a combobox with data from a rondom access file Pin
..Hubert..5-May-04 3:24
..Hubert..5-May-04 3:24 
GeneralImporting excel sheet, How to set Column range Pin
Tarakeshwar5-May-04 3:01
Tarakeshwar5-May-04 3:01 
GeneralRe: Importing excel sheet, How to set Column range Pin
Heath Stewart5-May-04 4:52
protectorHeath Stewart5-May-04 4:52 
QuestionHow to speed up loading of nodes in Tree Pin
Tarakeshwar5-May-04 2:52
Tarakeshwar5-May-04 2:52 
AnswerRe: How to speed up loading of nodes in Tree Pin
Heath Stewart5-May-04 4:28
protectorHeath Stewart5-May-04 4:28 
GeneralRe: How to speed up loading of nodes in Tree Pin
Werdna5-May-04 7:32
Werdna5-May-04 7:32 
GeneralInheritng C.Controls Pin
sreejith ss nair5-May-04 2:43
sreejith ss nair5-May-04 2:43 
GeneralRe: Inheritng C.Controls Pin
Heath Stewart5-May-04 4:25
protectorHeath Stewart5-May-04 4:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.