Solved

vb.net ado.net know first value of table rows

Posted on 2010-11-09
7
330 Views
Last Modified: 2012-05-10
I have a table but i need modify/delete some times each row value, how can know the value originally in each row.
0
Comment
Question by:rflorencio
  • 3
  • 3
7 Comments
 
LVL 42

Expert Comment

by:sedgwick
ID: 34092682
can u elaborate the question?what do u mean by "how can know the value originally in each row"?
0
 
LVL 53

Expert Comment

by:Dhaest
ID: 34092797
For a datatable in .net: Getting Specific Versions of a Row
http://msdn.microsoft.com/en-us/library/7kd9zhee(vs.71).aspx
0
 

Author Comment

by:rflorencio
ID: 34093243
for ex i load a row from sql table:
credit=500
after credit row can have many values like 200/, 39, ....
and last i need to know the first value in row, in this case 500
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 53

Expert Comment

by:Dhaest
ID: 34093354
So you want the first row of the data you retrieve ?

DataTable.Rows(0)
0
 

Author Comment

by:rflorencio
ID: 34093450
no, my example consider is ever the same row. if same row change value, i need know original value in this ex. 500
0
 
LVL 53

Accepted Solution

by:
Dhaest earned 500 total points
ID: 34093615
See the link I provided earlier ...

For a datatable in .net: Getting Specific Versions of a Row
http://msdn.microsoft.com/en-us/library/7kd9zhee(vs.71).aspx
0
 

Author Comment

by:rflorencio
ID: 34093882
I can get the DataRowVersion.Original at any time, even after is changed.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question