Performance issues after filling datagridview

15 pts.
Tags:
DataGridView
VB.NET
Hi! I have a tabbed form with a datagridview on one tab. My code is a realtime system and runs fine until I load data into the datagridview. A particular loop of code, not at all related to the datagridview, runs at about 78mSec. After loading even 5 rows of data, I immediately see performance go to around 94 mSec. If I load a lot of data into the grid, like maybe 10000 rows of data, the performance can go to 200 to 220 mSec to perform the same loop. Again, this code is not even related to the datagridview. Any ideas as to why my execution time would be so severely impacted just by loading data into the datagridview on another tab? Thank you!
0

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • carlosdl
    It is really hard to guess without looking at the code.

    Sometimes one believes some code is totally unrelated to some other methods but after a careful review it turns out they are indirectly related at some point.  This may or may not be the case here.

    I would add debug messages (with timestamp) after every line of code of the mentioned loop, to identify what line or lines of code are the ones taking longer to execute when data is loaded into the data grid.  Maybe identifying them can shed a light of the root cause of the delay.
    85,105 pointsBadges:
    report
  • juliomjr1

    Good idea, thank you!

    15 pointsBadges:
    report
  • ToddN2000
    Where is the data being pulled from? I pulling from an i-Series, how is the system pooling set up?
    134,845 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: