CodePudding user response:
Send code,You are through the begininvoke () method to asynchronous update datagridview?
CodePudding user response:
Handled separately, ignore what sokectFirst open a thread, send a simulated parsed object per second to BlockingCollection
Open a thread in the other, using the foreach var. Xx in the BlockingCollection GetConsumingEnumerable () to get the data displayed to DGV
Ps: real-time record in theory, DGV records don't show too much, real-time news reserve half 2000 good, want to see more information in addition to the historical information query UI, from a database query