DataGridViewComboBoxCell value is not valid issue? is bug or not?

  • Thread starter Thread starter mtczx232
  • Start date Start date
M

mtczx232

I have simple code:

sql server table A with int foreign key to lookup table with PK int. I
fill the DataTable, and I set the DataGridView that have
DataGridViewComboBoxCell (by grid column editor). I set the
DisplayMember = "name" and ValueMember="id" of
DataGridViewComboBoxCell. and I got this error on form loading. the
data on the two tables is correct!

Have solution for this problem?
 
It would be helpful if you posted the error. And also the code,
for that matter.

Robin S.
 
please search the web with "DataGridViewComboBoxCell value is not
valid" all ask about that error but no one have clear solution. if you
know something clear please note me.
 
Back
Top