Click here to Skip to main content
15,881,173 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I have a datagridview which has multiple columns, with bound datasource. One of the columns in the datagridview is a column type DataGridViewComboBoxColumn. When a user clicks on any cell in this column, based on the selected row, the combo box items in the cell should be changed dynamically.

As an example, if the user's row selection is between 1 to 25, this DataGridViewComboBoxColumn should show

Option1
Option2
Option3

If the user's row selection is between 26 and 50, this this DataGridViewComboBoxColumn should display

Choice1
Choice2
Choice3

How do I do this? Any input is greatly appreciated.

Thanks
K
Posted
Comments
Tom Wauters 20-Jun-13 0:39am    
If you try to do this then you can fill in only one cell.
If you change the items of the combobox, while there is an other
value filled in in one of the other comboboxes you wil get an error because
the filled in value does not excist in the new items.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900