I am having a bear of a time trying to set the value of a GridViewComboBoxColumn via code. I have the BeginningEdit event, which I use to grab the value of the cell when editing starts. Then I check to see if the cell value is null or empty in the CellValidating event. I can detect that it is wrong. That part works fine. I cannot figure out how to set it to the previous value, if their entered value isn't valid.
(My end goal is that when the user clears the value and leaves the field, it replaces the null entry with the value the cell had when they entered it.)
Here is my GridViewComboBoxColumn code:
Here is my BeginningEdit event:
Here is my CellValidating event (you can see a few of my attempts to get the right thing):