473,386 Members | 1,867 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,386 software developers and data experts.

Display changes in dataset

I'm working in vb.NET. My program will be updating databases. However, the user does not want the program to make changes to the database until the user is ready to close the program. At which time, the user would like a short summary explaining all of the changes he/she has made to the dataset. I know I can use .haschanges() to discover if the user has made changes, but is there some way to be able to describe exactly what the user has changed (i.e. the information in the fields of a row the user has altered)? I'm not even sure something exists, so just a few ideas to get me heading in a direction would be nice.
Jun 12 '08 #1
3 1232
Plater
7,872 Expert 4TB
Well if its not going to be a huge dataset, you could keep two copies of it. One as the "original" and another as the one that gets changed.
Then when the time arises, just go down and compare the two of them and display the differences to the user?
Jun 12 '08 #2
kenobewan
4,871 Expert 4TB
I'm working in vb.NET. My program will be updating databases. However, the user does not want the program to make changes to the database until the user is ready to close the program. At which time, the user would like a short summary explaining all of the changes he/she has made to the dataset. I know I can use .haschanges() to discover if the user has made changes, but is there some way to be able to describe exactly what the user has changed (i.e. the information in the fields of a row the user has altered)? I'm not even sure something exists, so just a few ideas to get me heading in a direction would be nice.
Its standard when working with datasets to have them disconnected, make changes and then update. You are right about haschanges, but you may also be able to use dataset.getchanges to achieve what you want. HTH.
Jun 13 '08 #3
I know this is late and probably no one will care, but thanks for your help. I ended up getting new marching orders and took it a different route. I will be creating a table to store the data that I want about the changes, then I'll be creating a list of checkboxes, so that the user can decide exactly which changes he/she wants kept. Wish me luck!
Jul 1 '08 #4

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

Similar topics

42
by: Alan McIntyre | last post by:
Hi all, I have a list of items that has contiguous repetitions of values, but the number and location of the repetitions is not important, so I just need to strip them out. For example, if my...
3
by: olle | last post by:
Hi everyone. Beging a newbee to asp.net and used to work with traditional asp I have one problem working with a datalist. 1/ I make a dataset as as session variable like session("employees") 2/...
3
by: pcPirate | last post by:
Hi, I have an application, the user are able to change records in this application. Also, there's a button called "What If". After the user pressed the "What If" button, the user may change...
5
by: Grant | last post by:
Hello, How come when I add a new row to my dataset table it shows up as changed (agencyData.Haschanges() = True) but when I delete a row the dataset thinks here are no...
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...
18
by: Alpha | last post by:
Hi, I'm working on a Windows applicaton with VS 2003 on windows 2000. I have a listbox that I have binded to a dataset table, "source" which has 3 columns. I would like to display 2 of those...
0
by: M. David Johnson | last post by:
I cannot get my OleDbDataAdapter to update my database table from my local dataset table. The Knowledge Base doesn't seem to help - see item 10 below. I have a Microsoft Access 2000 database...
4
by: Peter Proost | last post by:
Hello group, what would be the best way to do the next thing: I've got a grid form with about 15000 records, when I double click a row a detail form is opened and the user can modify and save...
30
by: Charles Law | last post by:
Here's one that should probably have the sub-heading "I'm sure I asked this once before, but ...". Two users are both looking at the same data, from a database. One user changes the data and...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
0
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,...
0
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...
0
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,...
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.