I have 2 tables:
First:
id | 2ndTableId | Name
Second:
id | name
I want them to show on dataGridView as columns: 1 -> ComboBox with list of names from 2nd table (with some where clause), selected value = from 1st table '2ndTableId' 2-> name from first table
Moreover I want to keep in ComboBox 2 values (id and name). I made own class MyComboBox with Id and Name properties, but I got an error:
System.argumentException: DataGridViewComboBoxCell values is not valid.
I have no idea how to manage this. Can you help me?