VBobCat
Well-known member
I have a DataGridView with two columns:
The first column's cells are of type DataGridViewCheckBoxCell
I'm already able to catch its validation and get its value, whether true or false.
Now I want to do something I don't know how (and if) is possible:
- If the value of the cell in first column is true, I want the cell of same row in second column to be a DataGridViewComboBoxCell, so user is constrained to its listed options;
- If the value of the cell in first column is false (most common), I want the cell of same row in second column to be a DataGridViewTextBoxCell, so user can type whatever he wants.
Where should I start?
Thank you very much!
The first column's cells are of type DataGridViewCheckBoxCell
I'm already able to catch its validation and get its value, whether true or false.
Now I want to do something I don't know how (and if) is possible:
- If the value of the cell in first column is true, I want the cell of same row in second column to be a DataGridViewComboBoxCell, so user is constrained to its listed options;
- If the value of the cell in first column is false (most common), I want the cell of same row in second column to be a DataGridViewTextBoxCell, so user can type whatever he wants.
Where should I start?
Thank you very much!