Re: DataSet and thread
- From: "shark" <mark@xxxxxxxxxxxxxx>
- Date: Wed, 19 Dec 2007 16:54:51 +0100
I'm going to do this (disable grid) but I just wonder what could happpen
Thx
SS
"Nicholas Paldino [.NET/C# MVP]" <mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:ONRAWXlQIHA.4656@xxxxxxxxxxxxxxxxxxxxxxx
SS,
This scenario shouldn't be allowed to happen. You should be disabling access to the data grid view while the thread is updating the underlying data that the user is seeing in the grid.
--
- Nicholas Paldino [.NET/C# MVP]
- mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx
"shark" <mark@xxxxxxxxxxxxxx> wrote in message news:fkb4fo$hh0$1@xxxxxxxxxxxxxxxOK, so
1. bindingsource.SuspenBinding
2. Thread is started
3. Thread is pulling data to dataset
4. User is working with DataGridView (which is unbound from dataset) and is changing data in it
5. Thread stops
6. bindingsource.ResumeBinding
What will happen to my dataset ?
Thx
SS
"Jon Skeet [C# MVP]" <skeet@xxxxxxxxx> wrote in message news:MPG.21d322658f94cb3f71e@xxxxxxxxxxxxxxxxxxxxxxxshark <mark@xxxxxxxxxxxxxx> wrote:I'm calling bindingsource.SuspenBinding just before Thread is started. It
works fine, but my question is what will hapen to data is user change it
manually and then I call bindingsource.ResumeBinding ?
Data will be overriden ? or merged?
It's not quite clear what sequence of events you're worried about.
Could you spell it out in more detail?
--
Jon Skeet - <skeet@xxxxxxxxx>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk
.
- Follow-Ups:
- Re: DataSet and thread
- From: Nicholas Paldino [.NET/C# MVP]
- Re: DataSet and thread
- References:
- DataSet and thread
- From: shark
- Re: DataSet and thread
- From: Jon Skeet [C# MVP]
- Re: DataSet and thread
- From: shark
- Re: DataSet and thread
- From: Jon Skeet [C# MVP]
- Re: DataSet and thread
- From: shark
- Re: DataSet and thread
- From: Nicholas Paldino [.NET/C# MVP]
- DataSet and thread
- Prev by Date: Re: DataSet and thread
- Next by Date: MMC 3.0 and .NET 1.1 ???
- Previous by thread: Re: DataSet and thread
- Next by thread: Re: DataSet and thread
- Index(es):
Relevant Pages
|
|