Click to See Complete Forum and Search --> : datagridview refresh


spyhabs
October 18th, 2009, 07:04 PM
Hello,

I'd like to have your help to refresh a datagridview. I explain my problem. I have data received from serial port. I need to update data in the datagridview as quick as possible. At 115200 bps, I can receive a packet at each ~1.5 ms. This packet must be displayed in the datagridview. If I receive a packet for example at each 15 ms... i have time to update the datagridview...

But, my problem is when i receive a packet at each ~1.5 ms. The datagridview refresh is not updated in real-time... I'd like to improve this, but I have no idea.

I spent few days to experiment some stuff and no good result!

Regards

eclipsed4utoo
October 19th, 2009, 09:00 AM
Windows is not a real-time OS. You will never have "real-time" in Windows.

spyhabs
October 20th, 2009, 04:17 PM
Thanks for the reply,

I know it's not real-time. But I know that I can have a better window refresh if I develop with an other tool. I see that there is a lot of process in C# to refresh a datagridview. I just want to know if I can refresh a datagridview as quick as possible. I don't want to have any late to do this.

Thanks

vcdebugger
October 22nd, 2009, 02:13 AM
Put your datagrid view refreshing operation in a timer handler created for 1.5 ms this might help you to refresh the data grid as fast as possible...