Hi Woody,
You can handle the DataTable.RowDeleted Event and add CalcBal() call in it.
The RowDeleted event occurrs after a Row is deleted. You can refer to the
following link for more information.
http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfsystemdatadatatableclassrowdeletedtopic.asp
If anything is unclear, please feel free to reply to the post.
Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
--------------------
| From: "Woody Splawn" <wo***@splawns.com>
| Subject: Delete row from grid
| Date: Tue, 4 Nov 2003 11:56:53 -0800
| Lines: 12
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <u3**************@TK2MSFTNGP10.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.vb
| NNTP-Posting-Host: 168.158-60-66-fuji-dsl.static.surewest.net
66.60.158.168
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:153613
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
| I have a datagrid. Through the normal means I highlight a record in the
| datagrid and press the delete key. I say yes and the record is deleted.
| However, in this case I need to run some code after deleting the record
that
| scans the table and puts values in a BalDue field. The code is in a sub
| routine called CalcBal().
|
| How is it possible for me to run this code after deleting a record in a
| grid? In what event could I place a call to CalcBal that would cause it
to
| run after deleting a record?
|
|
|
|