Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 2005 > Pro Visual Basic 2005
|
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 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 February 26th, 2007, 06:18 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 "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! :)

Regards,

VBM2
__________________
Kind regards,

Craig
 
Old March 12th, 2007, 09:36 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

Ok!

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...?





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





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