Problem with new Row on DataGridView

S

shahoo

Hi, I have a DataGridView on a form and it is bound to a
BindingSource. Some fields are necessary and so cannot accept Null
values. My problem is that when I run the program and try to add a new
row to the DataGridView and value of one of the necessary cells is
missing, when I click anywhere on the form it throws an exception and
prompts that that cell cannot be empty and it cancels the newly added
row. What I want to do is just prompt the user to add the value for
the cell and not canceling the new row. Can anyone please help?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top