newbie: Getting the latest record in a DataTable in DataSet ??? - lass |
07-Jan-08 08:46:33
|
Define latest record.
Is it the one with the highest primary key value? The highest time stamp
value?
Perhaps it's just a matter of ordering your data accordingly.
--
Lasse Vågsæther Karlsen
mailto:lasse@vkarlsen.no
http://presentationmode.blogspot.com/ |
 |
| |
newbie: Getting the latest record in a DataTable in DataSet ??? - Jeff |
07-Jan-08 09:03:05
|
It's the record with the highest primary key value... each record also
contain a datatime value specifying when the record was created... |
 |
| |
newbie: Getting the latest record in a DataTable in DataSet ??? - Ignacio Machin \( .NET/ C# MVP \) |
07-Jan-08 09:09:07
|
Hi,
Just create a DataView with the correct sorting and it would be either the
first or the last record in the DataView
--
Ignacio Machin
http://www.laceupsolutions.com
Mobile & warehouse Solutions. |
 |
| |