Doesnt work, i tried following
I delete a row e.g.
dim dtchanges as datatable
dtchanges=dtmain.select(smt=smt)
for each drow in dtchanges
drow.delete
next
etc.
now when i try to get info out of the deleted rows i get an error
I read a row like this.
dim dtdeleted as datatable = dtmain.detectchanges
for each drow in dtdeleted
msgbox drow(0) <----- Error here
next
"Erik" <us**@domain.invalid> schreef in bericht
news:Ob*************@TK2MSFTNGP11.phx.gbl...
Albert wrote:
Does anyone know if it is possible to get information out of a datarow
which has been deleted?
Thanks,
Albert
as long as you did not call the AcceptChanges method of the datarow.
Example accessing the data in Column idx of DataRow Row:
If Row.HasVersion(DataRowVersion.Original) Then
Debug.WriteLine(Row(idx, DataRowVersion.Original))
End If