"Marc Gravell" <ma**********@gmail.comwrote in message
news:%2******************@TK2MSFTNGP06.phx.gbl...
Interestingly, it appears to take about 3-4 times as long if it does this
in the inital load. I'm guessing due to resizing fonts etc requiring a
re-draw.
Try the following, which loads the data when you first drag the mouse over
the grid - it loads in about 5 seconds on my poor-mans laptop (1.8, 512) -
so should be better for you. Obviously you might want to put this in a
small timer or something rather than rely on user intervention (I'm
guessing that using Load would still cause the redraws; haven't tested
though)
Main difference is where the data gets initialised (although the important
bit really is when the bindings get set against the dgv, or in this case,
reset):
It still took several minutes to render itself but that's better than
before. Something's obviously wrong however given that it returns in 5
seconds on your laptop. What I'll have to do is look at your code in greater
detail (BindingList, etc.) and combined with other possible remedies at
MSFT's site (cited in my other post), maybe I can handle painting/drawing on
a page-by-page basis (without turning to virtual mode). With any luck I can
improve things after some experimentation. If worse comes to worse however,
do you have any experience with the "DataGrid" or some other 3rd-party
control. I don't need anything flashy but functional control is important
(the grid's look should be clean and modern - not outdated - but my needs
are mostly utilitarian). Thanks for all your help (truly appreciated)