"John" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi
>
> 1. I am filling the dataset in my form load method as;
>
> Me.MyTableAdapter.Fill(Me.MyDataSet.Clients).
>
> What about the records that other users add to the database? Do I need to
> run the fill command from time to time or will dotnet automatically fetch
> these records periodically?
No, ado.net won't do anything by default. So, either you do fetch from time
to time or use SQL Server's notification services.
>
> 2. I am saving the data as below;
>
> Me.Validate()
> Me.MyBindingSource.EndEdit()
> Me.TableAdapterManager.UpdateAll(Me.MyDataSet)
>
> How will system react when concurrency violation occurs? How will system
> inform me of it and how can I handle that?
You might check "Optimistic Concurrency (ADO.NET)" help topic. Basically it
will tell you that an error happened (or not) in DataAdapter.RowUpdated
event.
--
Miha Markic [MVP C#, INETA Country Leader for Slovenia]
RightHand .NET consulting & development
www.rthand.com
Blog:
http://cs.rthand.com/blogs/blog_with_righthand/