Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 2005 > Visual Basic 2005 Basics
|
Visual Basic 2005 Basics If you are new to Visual Basic programming with version 2005, this is the place to start your questions. For questions about the book: Beginning Visual Basic 2005 by Thearon Willis and Bryan Newsome, ISBN: 0-7645-7401-9 please, use this forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Basic 2005 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 5th, 2007, 07:28 AM
Authorized User
 
Join Date: Oct 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to VBM2
Default 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





Similar Threads
Thread Thread Starter Forum Replies Last Post
Refreshing Forms Brendan Bartley Access 5 June 27th, 2007 07:47 AM
Refreshing AutoNumber kuznickic Access VBA 3 February 12th, 2007 08:40 AM
Datagridview combobox issue aad1 C# 0 May 26th, 2006 01:00 PM
refreshing XML withour refreshing the page sasidhar79 XML 1 January 12th, 2005 05:16 AM
refreshing the table linfakngiau BOOK: Beginning Java 2 1 October 24th, 2003 10:53 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.