We are looking for a way to determine the rownumber of the record in
the original database. Records are renumbered in the relation and we
want to edit/modify the original record in the original table.
Therefore we think we need the recordnumber of the original record in
the original table.
Here some code we brew... We need for nRecord in the 2nd line the
rownumber of the original table where nRecord NOW returns the
recordnumber of the relation.
Function SaveItem()
Dim nRecord As Integer = Me.BindingContext(DsGroup_News1,
"NewsGroup.NewsGroupNews").Position
Console.WriteLine(nRecord)
Dim nRow As DataRow = DsGroup_News1.News.Rows(nRecord)
Dim lDelete As Boolean =
DsGroup_News1.Tables("News").Rows(nRecord)("Record _Delete")
StatusBarSync(2)
If (nRow.HasVersion(DataRowVersion.Proposed) = True) Then
Me.DsGroup_News1.Tables("News").Rows(nRecord)("Vie wed") +=
1
Me.DsGroup_News1.Tables("News").Rows(nRecord)("Dat e_Modify") = Now()
Me.DsGroup_News1.Tables("News").Rows(nRecord)("Ver sion") =
Microsoft.VisualBasic.Right(StatusBarPanel_Version .Text, 8)
If lDelete = True Then
Me.DsGroup_News1.Tables("News").Rows(nRecord)("Dat e_Delete") = Now()
End If
On Sun, 5 Sep 2004 16:16:28 -0500, "VJ" <vi********@yahoo.com> wrote:
I think Martin is looking for something like RowIndex the hexadecimal value
that is available in Oracle. Are you trying to delete duplicate rows created
by mistake? what are you trying do ? If you are trying to delete dup rows i
have queries that can do that.. let me know .... but if you are looking to
use in program I am not aware of it...
VJ
"Martin Heuckeroth" <ni**@nospam.invalid> wrote in message
news:ot********************************@4ax.com.. .
Hi
Any idea on how to get a row number from the original table? We do a
query and get a result. The row number from the result is different
from the rownumber of the table the result originated from. I need the
record number from the original tabel. How do you get THAT number?
Please help,
Regards, Martin