How do I change the following things of a DataGridViewComboBoxColumn at runtime:
- How do I set the first value of the combo box as default?
- Disable combo box/make it read-only while showing the first value as default. Meaning to say, if I have 3 items in the combo-box it should show only the first item. (Either disable the combo box drop down, or change it to become a text box at runtime).
Reason:
The reason I do that is because for my Enum I have Status{New=1,Stop=2,Temp=3}. When i want to register a student, the status is always set to New. So when I save, it will auto save the Status = 1.
Here is how to set the default value and disable the cell: