views:

68

answers:

1

hello,

I have a DataGridView which has different rows and columns and it work perfectly when I add values to it

so I have dgv is a DataGridView

and the following line working perfectly

dgv.Rows.Add(setting[0], StringToInteger(setting[1]), setting[2], setting[3], setting[4]);

now the new change is setting[0] it was text cell, now it is DataGridViewComboBoxColumn and I have the values working,Not working, .... and may new things come in the future!

how to solve that

how to add a text value that it will show in the DataGridViewComboBoxColumn as a ComboBox ??

cheers

A: 

Use a templatefield,

this way you can bind a value to a new object (in this case a checkbox) trough a function.

Nealv