0

With a code like similar :

gridNomiColonne.Rows[i].Cells[j].Value = value

i cannot assign a value to a DataGridViewComboBoxColum. How can I do it?

Thanks in advance, Simone

Ňɏssa Pøngjǣrdenlarp
  • 38,411
  • 12
  • 59
  • 178
Simone Spagna
  • 626
  • 7
  • 27

1 Answers1

0

Try this one

cboBoxColumn.ValueMember = "Value";
  • 2
    While this code snippet may solve the question, [including an explanation](http://meta.stackexchange.com/questions/114762/explaining-entirely-code-based-answers) really helps to improve the quality of your post. Remember that you are answering the question for readers in the future, and those people might not know the reasons for your code suggestion. – Derek Brown Apr 22 '18 at 13:47