467,188 Members | 1,507 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,188 developers. It's quick & easy.

Data-bound DataGridView creates bogus empty rows

Hello. I have a DataGridView that is bound to a DataTable. If the user
types in values for all the columns for the first row, then clicks
into a column in the second row (empty), and then clicks back into the
first row he just typed, then an empty row is added to the
DataGridView. I'm guessing that somehow the AddRow function is being
called when the user clicks in and out of the empty row. I don't want
this to happen. A new row should only be added to the DataGridView if
the user types in valid values for all the columns. Does anyone know
how to fix this? Thanks.

Jul 5 '08 #1
  • viewed: 1468
1 Reply

I guess you are using "Inserting a New Record from the GridView’s
Footer" technique...
hiding the footer suppose to solve the problem
Best of luck


Jul 6 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Tony Lee | last post: by
1 post views Thread by djozy | last post: by
reply views Thread by NicK chlam via DotNetMonster.com | last post: by
3 posts views Thread by bbernieb | last post: by
5 posts views Thread by DC Gringo | last post: by
reply views Thread by Winder | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.