Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 2005 > Pro Visual Basic 2005
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Pro Visual Basic 2005 For advanced Visual Basic coders working in version 2005. Beginning-level questions will be redirected to other forums, including Beginning VB 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro Visual Basic 2005 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 26th, 2007, 06:18 AM
Authorized User
Join Date: Oct 2004
Location: Nottingham, , United Kingdom.
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to VBM2
Default "Proper" way of updating bound controls and grids

Hi all.

Working at this company I'm at, is the first time I've ever used "production" programming methods and "proper" system architecture.

At the moment, I'm a little confused as to how I can achieve 2 tasks within the software. I hope you can help!!

1) Firstly, we have numerous gridview controls on various usercontrols, listing things like companies, contacts etc (kind of like a phone book). You can filter the contacts down by selecting a company from a data-bound drop-down box to display contacts from an individual company. However... if I were to edit a companies name from the companies module of the software and then look for it in the drop-down box in the contacts module, it still displays the original companies name. What is the "proper" way of solving this problem??

2) Secondly, (similar to the first), if I add a company or contact, how could I then get combo boxes across the application to then show that item within its object list??? This also applies to the grids that are in the software!

The most obvious answer to BOTH questions would be "jsut re-populate the control", but... surely this isn't the correct way of doing things and personally, I don't want to do that because we have thousands of objects going into each control on population, thus making performance questionable.

I hope I make sense. By the way, in terms of normal combo boxes and lists, I set the datasource property at run-time to a collection of records made in code and in regards to listview controls, I get a collection of records, and then go through them one by one in a For loop to put them into the grid, under the correct headers etc.

Look forward to your answers! :)


Kind regards,

  #2 (permalink)  
Old March 12th, 2007, 09:36 AM
Authorized User
Join Date: Oct 2004
Location: Nottingham, , United Kingdom.
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to VBM2


What is the correct way of displaying a list of data in a datagridview to a user, that updates on a client machine when another client machine updates a record???

Or... a record gets added to everyone elses grid when someone adds a new record etc.

I have no idea...?

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Updating Bound Controls Values automatically Borhani Excel VBA 0 January 20th, 2008 12:48 PM
set tabindex for controls in two sync grids toshi C# 0 September 27th, 2007 03:59 AM
Bound Controls cpanson ADO.NET 0 June 24th, 2006 07:29 PM
databound grids with html controls inside badgolfer ASP.NET 1.0 and 1.1 Basics 1 September 25th, 2004 12:14 PM
Bindind data-bound grids to ADO recordsets module0000 VB Databases Basics 4 June 19th, 2003 11:17 PM

All times are GMT -4. The time now is 12:04 AM.

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