Wednesday, 7 August 2013

How to pause and start adding rows to data grid view on button press in C#

How to pause and start adding rows to data grid view on button press in C#

I have one application which can communicate with a connected hardware.
When I turn on the hardware, the hardware will continuously send some data
to the application. I am able to read the data from hardware in my
application and record that data in to a dataGridView by adding rows for
each data at run time.
Now i want to add a 'Pause' button. When i press this button, my
application should stop adding new raw to the datagridview.
But the recording process should be continued in background.
When i press the same button again, all the recorded rows should be
displayed and the process should continue.
Please help I am new to C#.

No comments:

Post a Comment