DataGridView with comboColumn with different datasource per row.

Hello,

I have a question about the DataGridView with a bound combobox column.

The situation is this: in my grid I have a list of questions, for each question there are different answers possible (every question has it's associated list of possible answers) so this the list of possible answers can be different for each question in the DGV.

Now I want to display the possible answers for each question in a datagridviewCombobox [DGVCBB] column (so that the user can easily select the answer). This means that for each question the datasource for the [DGVCBB] is different over the whole datagrid and that's where the problem lies. When i change the datasource for each row (in the currentchanged event of the datasource connected to the datagrid where I set the datasource for the comboboxcolumn with the associated answerlist.) this gives an error when the DGV is repainting itself.

My gueuss is that I cannot bind a comboboxcolumn to different datasources in the same datagrid or it must set the datasource in another event of the datagrid?

How can I solve this?

Thanks in advance,

[1540 byte] By [Khelb] at [2007-12-23]