|
-
Mar 17th, 2009, 06:18 AM
#1
Thread Starter
New Member
DataGridView multi column ComboBox
Hi,
Is it possible to have a multi column combox box, being used as a lookup list, in a DataGridView.
Thanks
-
Mar 17th, 2009, 08:10 AM
#2
Re: DataGridView multi column ComboBox
There is no multi-column ComboBox in the .NET Framework. There are plenty of examples available on the web showing how to create one. You'd need to then create your own class that implements one of those and also implements the IDataGridViewEditingControl interface. You'd also then need to create your own column and cell types to host your editing control.
-
Mar 17th, 2009, 09:03 AM
#3
Thread Starter
New Member
Re: DataGridView multi column ComboBox
Thanks for the reply. As you may have guessed, I'm a newbie to .NET.
Like I said, I am using this column as a lookup from a master table. It is much more user friendly if I can show more data, rather than just one field.
I'll take your advice and Google away, unless you can suggest a better solution for showing users more information in a bound lookup field.
For example, I want the ValueMember to be an Integer, but allow the user to select from a list showing;
Job Number | Description | Title
Rather than just showing Job Number
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|