RE: updating datagrid after returning
From: Kevin Yu [MSFT] (v-kevy_at_online.microsoft.com)
Date: 10/14/04
- Next message: Francesco Martinelli: "Re: Command line compiler when there are images in the project: any suggestion?"
- Previous message: Michael Culley: "Re: question on errror handling in windows service"
- In reply to: Pam Ammond: "RE: updating datagrid after returning"
- Next in thread: Pam Ammond: "RE: updating datagrid after returning"
- Reply: Pam Ammond: "RE: updating datagrid after returning"
- Messages sorted by: [ date ] [ thread ]
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."
- Next message: Francesco Martinelli: "Re: Command line compiler when there are images in the project: any suggestion?"
- Previous message: Michael Culley: "Re: question on errror handling in windows service"
- In reply to: Pam Ammond: "RE: updating datagrid after returning"
- Next in thread: Pam Ammond: "RE: updating datagrid after returning"
- Reply: Pam Ammond: "RE: updating datagrid after returning"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|