Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > BOOK: Beginning VB.NET Databases
|
BOOK: Beginning VB.NET Databases
This is the forum to discuss the Wrox book Beginning VB.NET Databases by Thearon Willis; ISBN: 9780764568008
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning VB.NET Databases 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 September 16th, 2005, 07:35 AM
Registered User
 
Join Date: Aug 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 12 - Can't assign datasource to cboUserXXX

I've been trying to debug this for days, but to no avail... cboUserXXX.DataSource assignment fails for all three combos on pnlUsers (cboUserGroup, cboUserRole, cboUserManager).

The DisplayMember and ValueMember assignments work (as shown in the Autos window while debugging), but the datasource assignment still fails (remains set to Nothing)! What could it be?

Nikos

 
Old September 17th, 2005, 04:30 AM
Thearon's Avatar
Wrox Author
 
Join Date: Dec 2003
Posts: 396
Thanks: 0
Thanked 8 Times in 8 Posts
Default

Are you specifying the correct table names in your DataSet when performing the binding? Can you post your code for the binding of these combo boxes?

Thearon
 
Old September 19th, 2005, 12:50 AM
Registered User
 
Join Date: Aug 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thearon,

Thanks for replying. It wasn't the table names (it worked fine for cboGroups, for instance, while not for cboUserGroup, which came right next). It turned out to be the Sorted property if the combos, which I had set to True (don't ask me why!). As soon as I reset that, it worked.

Regards,
Nikos






Similar Threads
Thread Thread Starter Forum Replies Last Post
chapter about object datasource and gridview? asptwodev BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 1 November 2nd, 2007 12:53 PM
Generics chapter 12 difficult chapter i found ...? Larryz C# 2005 1 July 4th, 2007 09:40 PM
Chapter 12 stingo BOOK: Beginning Access 2003 VBA 0 March 1st, 2007 05:15 PM
Errors on Chapter 12 example(12.8) sonnie ASP.NET 2.0 Professional 2 June 7th, 2006 10:55 AM





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