CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2009
    Posts
    2

    Unhappy datagridview refresh

    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

  2. #2
    Join Date
    Nov 2007
    Location
    .NET 3.5 / VS2008 Developer
    Posts
    624

    Re: datagridview refresh

    Windows is not a real-time OS. You will never have "real-time" in Windows.
    ===============================
    My Blog

  3. #3
    Join Date
    Oct 2009
    Posts
    2

    Re: datagridview refresh

    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

  4. #4
    Join Date
    May 2009
    Location
    Bengaluru, India
    Posts
    460

    Re: datagridview refresh

    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...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured