Object cannot be cast from DBNull – Solution
I had a DataGridView in my Windows Form Application with an editable column, This editable column is to get populated with a priority number which I declared as a short in the code. On the DataGridView.CellValueChanged event, I get the…