Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
QuestionDesigner Problem Pin
Meysam Toluie9-Apr-14 19:22
Meysam Toluie9-Apr-14 19:22 
AnswerRe: Designer Problem Pin
OriginalGriff9-Apr-14 20:31
mveOriginalGriff9-Apr-14 20:31 
GeneralRe: Designer Problem Pin
Meysam Toluie9-Apr-14 20:45
Meysam Toluie9-Apr-14 20:45 
AnswerRe: Designer Problem Pin
OriginalGriff9-Apr-14 20:53
mveOriginalGriff9-Apr-14 20:53 
GeneralRe: Designer Problem Pin
Meysam Toluie9-Apr-14 21:30
Meysam Toluie9-Apr-14 21:30 
GeneralRe: Designer Problem Pin
OriginalGriff9-Apr-14 21:54
mveOriginalGriff9-Apr-14 21:54 
GeneralRe: Designer Problem Pin
Meysam Toluie9-Apr-14 22:36
Meysam Toluie9-Apr-14 22:36 
GeneralRe: Designer Problem Pin
OriginalGriff9-Apr-14 22:57
mveOriginalGriff9-Apr-14 22:57 
Cathartic isn't it? Laugh | :laugh:

You're right, I don't know the details of your app, but the way I'd handle it from what you have said so far is to have the thread update the DGV via Invoke (the thread has the form as it's this reference, so it can access form instance variables such as controls for just this kind of reason) and pass it a row reference and some indication of which WCF service it should process. I'd then use an event in the processing class to feed the data back to a thread event handler and Invoke from there. That way the processing class can be independant of the display and you can reuse the form!
The Invoke moves the control update back onto the UI thread, so there are no cross thread exceptions.

Does that make sense?
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)

GeneralRe: Designer Problem Pin
Meysam Toluie9-Apr-14 23:23
Meysam Toluie9-Apr-14 23:23 
GeneralRe: Designer Problem Pin
Dave Kreskowiak10-Apr-14 2:26
mveDave Kreskowiak10-Apr-14 2:26 
AnswerRe: Designer Problem Pin
V.10-Apr-14 22:57
professionalV.10-Apr-14 22:57 
QuestionWhen to read data tables? Pin
Shady George9-Apr-14 11:26
Shady George9-Apr-14 11:26 
AnswerRe: When to read data tables? Pin
OriginalGriff9-Apr-14 20:29
mveOriginalGriff9-Apr-14 20:29 
GeneralRe: When to read data tables? Pin
Shady George9-Apr-14 22:13
Shady George9-Apr-14 22:13 
GeneralRe: When to read data tables? Pin
OriginalGriff9-Apr-14 22:19
mveOriginalGriff9-Apr-14 22:19 
GeneralRe: When to read data tables? Pin
joost.versteegen10-Apr-14 1:40
joost.versteegen10-Apr-14 1:40 
QuestionRe: When to read data tables? Pin
Eddy Vluggen10-Apr-14 2:59
professionalEddy Vluggen10-Apr-14 2:59 
AnswerRe: When to read data tables? Pin
joost.versteegen10-Apr-14 3:35
joost.versteegen10-Apr-14 3:35 
SuggestionRe: When to read data tables? Pin
Eddy Vluggen10-Apr-14 6:41
professionalEddy Vluggen10-Apr-14 6:41 
GeneralRe: When to read data tables? Pin
joost.versteegen10-Apr-14 7:57
joost.versteegen10-Apr-14 7:57 
QuestionLooking for a new file editor Pin
MacRaider49-Apr-14 4:11
MacRaider49-Apr-14 4:11 
AnswerRe: Looking for a new file editor Pin
GuyThiebaut9-Apr-14 4:57
professionalGuyThiebaut9-Apr-14 4:57 
GeneralRe: Looking for a new file editor Pin
MacRaider49-Apr-14 5:13
MacRaider49-Apr-14 5:13 
AnswerRe: Looking for a new file editor Pin
Pete O'Hanlon9-Apr-14 5:19
mvePete O'Hanlon9-Apr-14 5:19 
GeneralRe: Looking for a new file editor Pin
MacRaider49-Apr-14 6:17
MacRaider49-Apr-14 6:17 

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.