Re: DataSet and thread



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: Running my house from a Generator, can I do this?....
    ... house first in this scenario, ... from the grid then?? ... but it depends on YOU being perfect an ddoing everything ...
    (alt.home.repair)
  • Re: Running my house from a Generator, can I do this?....
    ... this scenario, wouldn't I be disconnected from the grid then?? ... in your house will never make a mistake and screw that up, ... but the last guy to kill a lineman with his generator was ...
    (alt.home.repair)