Click here to Skip to main content
15,915,093 members
Home / Discussions / C#
   

C#

 
GeneralRe: Dialog result Question Pin
MumbleB3-May-08 23:56
MumbleB3-May-08 23:56 
GeneralRe: Dialog result Question Pin
PIEBALDconsult4-May-08 5:04
mvePIEBALDconsult4-May-08 5:04 
GeneralRe: Dialog result Question Pin
Luc Pattyn4-May-08 11:44
sitebuilderLuc Pattyn4-May-08 11:44 
QuestionProblem with get set Pin
Saba023-May-08 4:01
Saba023-May-08 4:01 
AnswerRe: Problem with get set Pin
snorkie3-May-08 4:05
professionalsnorkie3-May-08 4:05 
AnswerRe: Problem with get set Pin
Saba023-May-08 4:23
Saba023-May-08 4:23 
QuestionADO.Net, DataGridView and Concurrency Pin
paas3-May-08 4:01
paas3-May-08 4:01 
AnswerRe: ADO.Net, DataGridView and Concurrency Pin
Rob Graham3-May-08 4:52
Rob Graham3-May-08 4:52 
No There is no such facility. The closest thing to what you want is SQL Server Notifications, but that is cumbersome and overkill here.

Your idea to update user1 of changes by user2 may not be as good a design as you think. Some questions to consider:

1. How likely is it that multiple users will be modifying the same data?
2. What is the likelyhood they will be viewing the same data (same subset of rows in the same table).
3. If user1 edites field A of row 2 just as your update notification arrives for User B having done the same, what will you do - overwrite user1's change? how annoying might that be?

In most cases both 1 and 2 are relatively rare, so all the network round trips needed to even determine if users need to be synchronized is not worth the negative impact on performance and scalability. The normal practice here is to detect collisions only when the user commits changes, and refuse them if the modified data had additional changes after the first user read them, but before he posted changes (typically by adding a timestamp field to each row, and comparing the timestamps - only allow update if they are still equal).
AnswerRe: ADO.Net, DataGridView and Concurrency Pin
Giorgi Dalakishvili3-May-08 5:37
mentorGiorgi Dalakishvili3-May-08 5:37 
GeneralRe: ADO.Net, DataGridView and Concurrency Pin
Rob Graham3-May-08 6:20
Rob Graham3-May-08 6:20 
QuestionStackOverFlowException error in C# Pin
ADTC#3-May-08 3:32
ADTC#3-May-08 3:32 
AnswerRe: StackOverFlowException error in C# Pin
adamzhang3-May-08 3:45
adamzhang3-May-08 3:45 
AnswerRe: StackOverFlowException error in C# Pin
Jimmanuel3-May-08 4:13
Jimmanuel3-May-08 4:13 
AnswerRe: StackOverFlowException error in C# Pin
User 66583-May-08 5:34
User 66583-May-08 5:34 
AnswerRe: StackOverFlowException error in C# Pin
Luc Pattyn3-May-08 5:35
sitebuilderLuc Pattyn3-May-08 5:35 
Questionderive from IEnumerator<t></t> Pin
George_George3-May-08 3:28
George_George3-May-08 3:28 
AnswerRe: derive from IEnumerator Pin
adamzhang3-May-08 3:49
adamzhang3-May-08 3:49 
GeneralRe: derive from IEnumerator Pin
George_George3-May-08 4:00
George_George3-May-08 4:00 
AnswerRe: derive from IEnumerator Pin
Pete O'Hanlon3-May-08 9:49
mvePete O'Hanlon3-May-08 9:49 
GeneralRe: derive from IEnumerator Pin
George_George3-May-08 19:40
George_George3-May-08 19:40 
GeneralRe: derive from IEnumerator Pin
Roger Alsing4-May-08 8:20
Roger Alsing4-May-08 8:20 
GeneralRe: derive from IEnumerator Pin
George_George6-May-08 3:07
George_George6-May-08 3:07 
Questionprivate/public get/set Pin
George_George3-May-08 2:51
George_George3-May-08 2:51 
AnswerRe: private/public get/set Pin
#realJSOP3-May-08 3:17
professional#realJSOP3-May-08 3:17 
GeneralRe: private/public get/set Pin
George_George3-May-08 3:19
George_George3-May-08 3:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.