RE: updating datagrid after returning

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Kevin Yu [MSFT] (v-kevy_at_online.microsoft.com)
Date: 10/14/04


Date: Thu, 14 Oct 2004 06:29:54 GMT

Hi Pam,

The dataGrid which show dsSize1 doesn't get updated, because when you call
newSizeDeleteForm.Show();, you assume that the code behind this line will
be suspended. They will wait for the newSizeDeleteForm to close, update the
database and continue executing with updated values.

Actually, the code didn't suspend. It goes down before newSizeDeleteForm
got a chance to delete data on the database, which mean they we run in two
threads. I suggest you to use newSizeDeleteForm.ShowDialog() instead of
newSizeDeleteForm.Show(). That might help you out of the problem.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."



Relevant Pages

  • Re: System Modes QUIESCE / SUSPEND
    ... > "The SUSPEND clause lets you suspend all I/O (datafile, control file, ... copy database by splitting BCV's. ... alter system checkpoint; ...
    (comp.databases.oracle.server)
  • Re: Exchange 2007 missing log
    ... This don't work, i have problem on active database, not on replication copy database. ... i try this procedure in EMS: ... Suspend ... update-storegegroupcopy -deleteexistingfiles ...
    (microsoft.public.exchange.admin)