Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > VB.NET 2002/2003 Basics
|
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 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 January 16th, 2004, 01:22 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 142
Thanks: 0
Thanked 2 Times in 2 Posts
Default Data Binding to a Collection of Objects

I've bound a load of controls to a collection I've created and the navigation of this is working fine. However, I have an 'add new' option that clears out the current set of data by resetting the collection (oDeliveries = New Deliveries). I add a new item to this collection, but the old data is still displayed - it would seem that the binderymanager/currency manager is still locked to the old data.

I've tried resetting the binderymanager to the bindingcontext of the form, this didn't work.

I also tried clearing the databindings of all objects (txtbox1.databindings.clear) then re-adding them (txtbox1.databindings.add). This method errors as soon as you try to add a new element with "Object reference not set to an instance of an object." I've checked my collection and this has the new object in it, so it must be the databindings object. Help!


 
Old February 12th, 2004, 03:08 PM
Registered User
 
Join Date: Feb 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to delinq
Default

I've just ran into the same problem as you describe here, did you find any solution ?? My text boxes keep filling themselves out when I click with the mouse or use TAB.

Anybody HELP ME!!






Similar Threads
Thread Thread Starter Forum Replies Last Post
Data Binding - Editing GridView Row Data desk_star BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 7 December 30th, 2007 11:07 AM
paging through data - Data Access Objects fedoracore PHP Databases 0 November 28th, 2006 07:54 PM
wireless data collection from microcontroller muhammadazeemazam Visual C++ 0 August 17th, 2006 08:45 AM
Crystal Reports Dynamic binding field objects velkropie Crystal Reports 0 December 1st, 2004 12:21 AM
Crystal Reports Dynamic binding field objects velkropie BOOK: Professional Crystal Reports for VS.NET 0 November 30th, 2004 11:35 PM





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