🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.winforms.controls.using
Article #520

Data Set Deleted Row Problem

#520
From: Stefanidis Dimitris
Date: Tue, 24 Aug 2004 14:39
30 lines
1440 bytes
Hello folks.


See This :
procedure Foo(aDataSet:DataSet);
var
 aRows:DataRowCollection;
begin
 If aDataSet.HasChanges then
 begin
    aRows := aDataSet.Tables[0].GetChanges.Rows;
    For i:= 0 to Pred(aRows.Count) do
      begin
        If aRows.RowState = DataRowState.Deleted then
            begin
               // Do Something here with this row.

            end;
      end;
 end;

When i try to access the deleted row then i get an error message as :
"DELETED ROW INFORMATION CANNOT BE ACCESSED THROUGH THE ROW "

Why ????
Any ideas how tro access the deleted row ?????


Thanks
Dimitris
Technical Details
Message-ID: <412b5327$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 1eff29,7e3c649189ddeea6
X-Google-Attributes: gid1eff29,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Stefanidis Dimitris" <distef01@yahoo.gr>
Newsgroups: borland.public.delphi.winforms.controls.using
Subject: Data Set Deleted Row Problem
Date: Tue, 24 Aug 2004 17:39:38 +0300
Lines: 38
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.3790.181
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.181
NNTP-Posting-Host: 194.30.233.129
Message-ID: <412b5327$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1093358375 194.30.233.129 (24 Aug 2004 07:39:35 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail