Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
|
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 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 21st, 2008, 12:49 PM
Registered User
 
Join Date: Feb 2008
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default DataGridView ComboBox

Hi,

I am writing an app that uses CSV files for data rather than a database.

I load the CSV files into a dataset and add a relation to link the tables within the dataset.

I can load the main table into the dataGridView and I can also load the comboBox column with a field from the joining table but it doesn't display the appropriate item from the comboBoxes list to match the ID in the table to which it is linked.

In other examples I have seen, which are all using dataAdapters to link to databases, it seems to be automatic.

Can anyone help me resolve this?

Thanks.

 
Old February 22nd, 2008, 09:59 AM
Registered User
 
Join Date: Feb 2008
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

UnstuckAtLast:-

I had put the wrong text in the DataPropertyName of the ComboBoxColumn.

............so know I know how to get the monkeys to work!







Similar Threads
Thread Thread Starter Forum Replies Last Post
EditingControlShowing in DataGridView w 2 combobox mike_geomatics .NET Framework 2.0 1 September 21st, 2010 12:03 PM
ComboBox events in dataGridView mallikalapati Visual Studio 2005 0 February 27th, 2008 07:16 AM
2 comboBox in the DataGridView mehrdad_T C# 0 January 20th, 2008 07:27 AM
Datagridview & combobox column p2pmarit .NET Framework 2.0 1 July 31st, 2006 02:31 AM
Datagridview combobox issue aad1 C# 0 May 26th, 2006 01:00 PM





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