Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 21st, 2008, 12:49 PM
Registered User
 
Join Date: Feb 2008
Location: , , .
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.

  #2 (permalink)  
Old February 22nd, 2008, 09:59 AM
Registered User
 
Join Date: Feb 2008
Location: , , .
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!


 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 01:34 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.