DataGridView events, kind of ...

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a form with a couple of datagridviews on them. I'm want to
automatically update the database so I've been calling tableview.update when
the bindingsource.listchanges event fires. WELL ... it seems the user likes
to switch back and forth between datagrids, maybe tabbing or ENTERing while
in the cells, maybe not. If they do that kind of thing enough, maybe 3 or 4
times, eventually a NoNullAllowed exception throws for the primary key.

Has anyone else seen this? Any ideas?
 
It sure sounds like your datasource is getting out of synch with the
datagridview. I would carefully check how you instantiate and bind the
bindingsource.
 
Thanks Earl ...

Earl said:
It sure sounds like your datasource is getting out of synch with the
datagridview. I would carefully check how you instantiate and bind the
bindingsource.
 
Back
Top