Wrox Programmer Forums
|
Pro Visual Basic 2005 For advanced Visual Basic coders working in version 2005. Beginning-level questions will be redirected to other forums, including Beginning VB 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro Visual Basic 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 January 5th, 2006, 12:30 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default DataGridViewComboBoxColumn

Hey,

I want to have a combobox in a datagridview for my one field, which has a name and ID value; so the combo box will have the name as the display member from the datasource and the ID as the value member.

So I have a combo box bound to a binding source, which has a display member of Name field, ID as value field; now the overall datagridview data source I want to select the value in the field, so the combo box has:

1 Brian
2 Dave
3 Ted

And because the datasource for the datagridview has a value of Dave, select Dave in the combobox.

How do I do that?

Thanks.


Brian
__________________
Brian





Similar Threads
Thread Thread Starter Forum Replies Last Post
DataGridViewComboBoxColumn Jamil.Anwar C# 2005 0 January 11th, 2008 06:22 AM
VS2005 DataGridViewComboBoxColumn databound CloudDust Visual Basic 2005 Basics 4 October 12th, 2006 06:29 PM
DataGridViewComboBoxColumn andymann C# 2005 2 June 23rd, 2006 07:17 AM





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