When binding to a DataGridView ComboBox I always get this error message!?
-
"system.formatexception: datagridviewcomboboxcell value is not valid" DataTypes are correct, it selects the right data too. The selections are pulled from one table, the actual selected value is pulled from another. :confused: Any ideas?
<scarcasm> Millions not that you'd be interested. </scarcasm> hopefully someone will know where that line came from.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
-
<scarcasm> Millions not that you'd be interested. </scarcasm> hopefully someone will know where that line came from.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
I grabbed the error from the data grid and just canceled the exception. e.Cancel = true worked great! Probably not the best way to deal with it but I was reading something that I believe is the source of the issue here, http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=136972&SiteID=1[^]