Re: DataSet and thread

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



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@xxxxxxxxxxxxxxx
OK, 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@xxxxxxxxxxxxxxxxxxxxxxx
shark <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




.



Relevant Pages

  • Re: Simple Question - I Think:/
    ... an either/or scenario. ... If you bind it to a grid, ... Bit field and I expected the Display to be true or false but the Actual ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: DataGrid & Winform Issues
    ... to get off the new row in my grid to get the update to work properly. ... > DataRowChangeEventArgs dre; ... > My scenario has a MDI Child forms. ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Re: TOISHDAB?
    ... I'm open to opinions, I just happen to think yours is wrong. ... I can't imagine a scenario where this would happen to any other adult ... Dropped off the grid to the point that you found him on Facebook while ...
    (rec.sport.football.college)
  • Re: TOISHDAB?
    ... I can't imagine a scenario where this would happen to any other adult ... Dropped off the grid to the point that you found him on Facebook while ... This is the third time you've suggested I'm lying in this thread, ...
    (rec.sport.football.college)