Hi,
Is it possible to have a multi column combox box, being used as a lookup list, in a DataGridView.
Thanks
Printable View
Hi,
Is it possible to have a multi column combox box, being used as a lookup list, in a DataGridView.
Thanks
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.
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