Wrox Programmer Forums
VB.NET General VB.NET discussions for issues that don't fall into other VB.NET forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 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 October 5th, 2004, 02:35 PM
Friend of Wrox
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default ComboBox Data Binding


I'm binding a typed datatable to the dataset. I have a combo box with the following properties:

ID - cbo
DisplayMember - Name (a column in the data table)
ValueMember - ID (a column in the DT)

In the load method of the windows form, I have:

cbo.DataSource = MyTypedDS.NameTable

Now, I put a break in the app. The data table actually has 14 records; however, when it converts the table into a DataView using DefaultView, it only has 1 record. Any ideas why?

I previewed the data at the DataAdapter level, and it has the 14 records.



Similar Threads
Thread Thread Starter Forum Replies Last Post
Binding ComboBox inside ListView problem gunnjamie Windows Presentation Foundation 1 July 17th, 2008 02:13 PM
Binding a comboBox to update a listView Amethyst1984 VB How-To 2 February 28th, 2006 03:07 PM
Issue Binding to ComboBox. lam_lvl VB.NET 2002/2003 Basics 1 February 22nd, 2006 09:38 PM
data binding a combobox ozPATT Excel VBA 1 November 16th, 2005 08:17 AM
binding combobox to sqlreader? drachx General .NET 6 October 14th, 2004 07:10 PM

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