Vb.net shows error but application works? How to solve the problem

Sometimes the datagridview control show error but the application works normally.
in fact in these cases is sufficient to close the error message and the application works normally.
However one wants that the error message isn't showed.
To eliminate the error message:
  1. Call the datagridview dataerror event
  2. Insert in the event routine this code: e.Cancel = True
Goodbye

No comments

Post a Comment