DataGridView refreshing issue
Hi all,
Yet another VB2005 question from moi! Hopefully this one will get answered though!
I have a datagridview on a usercontrol with a couple of combo boxes above it. The combo boxes determine what kind of records the datagridview gets populated with.
My datagridview is populate by class collections (e.g. "CompanyCollection").
I do not... however... set a datasource... - I do things unbound by having a procedure declared like the following:
Private Function AddContactToGrid(ByVal oCompany As Company, ByVal EditSelectedGridItem As Boolean, ByVal bSelectWhenAdded As Boolean) As Boolean
in this procedure, 1 row gets added or edited on the grid, based on the passed in parameters.
My problem is, when the usercontrol is first shown to the user on a form, the datagridview can populate well in advance of a 1,000 records in under... 2 seconds???
However, if I then use the combo boxes to change the criteria of the records, (based on something with roughly 1,000 records again) it takes AGES!!! Well over 30 seconds.
Any ideas? I can't find a re-draw property, which is what I *think* it may be.
Cheers!
__________________
Kind regards,
Craig
|