Article View: borland.public.delphi.database.dotnet
Article #92Datatable Triggers
From: Salim Naufal
Date: Tue, 11 Apr 2006 08:36
Date: Tue, 11 Apr 2006 08:36
9 lines
1363 bytes
1363 bytes
I am migrating from Delphi Win32 to Delphi Winforms .NET. Given a table with a primary key, I used to populate this primary key in the AfterInsert event of the DataSet. I cannot find the similar triggers in DotNET. What is the best way to achieve this? I tried the OnRowUpated trigger of the DataTable but it doesn't achieve what I'm looking for. An exception is raised before claiming that my primary key field in the datatable cannot be null. Regards to all Salim
Technical Details
Message-ID:
<443b6aa3$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!news.glorb.com!news.tele.dk!feed118.news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 1effe6,ee7e6d067d5931f0,start X-Google-Attributes: gid1effe6,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Salim Naufal" <salim_naufal@hotmail.com> Sender: "Salim Naufal" <salim_naufal@hotmail.com> Reply-To: "Salim Naufal" <salim_naufal@hotmail.com> Subject: Datatable Triggers Newsgroups: borland.public.delphi.database.dotnet X-User-Info: 213.175.169.4 X-Forwarded-For: 212.36.204.16 NNTP-Posting-Host: 207.105.83.66 Message-ID: <443b6aa3$1@newsgroups.borland.com> Date: 11 Apr 2006 01:36:51 -0700 X-Trace: newsgroups.borland.com 1144744611 207.105.83.66 (11 Apr 2006 01:36:51 -0700) Lines: 9 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!news.glorb.com!news.tele.dk!feed118.news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail