Answer the question
In order to leave comments, you need to log in
How to change data before saving in Entity Framework + DataGridView?
There is a datagridview with bound data from the Entity Framework - the model. One of the fields is external and can be NULL. But, when I pick up values for it from another table, when I click on the field itself, the first record from the external table is automatically selected, and I want to leave the option to leave NULL in this field. I tried to add a new empty record with id = 0 - it is still recognized as a value, and I get a foreign key error when saving the data. Is it possible to somehow change something in the data before saving?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question