DataGridViewComboBoxCell Binding - “value is not valid”

前端 未结 10 798
臣服心动
臣服心动 2020-11-30 09:45

I\'m trying to bind separate ComboBox cells within a DataGridView to a custom class, and keep getting an error

DataGridViewComboBoxCell value is not v

10条回答
  •  暖寄归人
    2020-11-30 10:07

    I had the same problem.

    In my case the solution was to fill the data adapter of the Foreign key table. This was not being automatically filled and this was the cause of the problem.

    In the Page_Load Event:

    Me.TblUserTypesTableAdapter.Fill(Me.DonateDataSet.tblUserTypes)
    

提交回复
热议问题