|
-
Aug 12th, 2007, 07:11 AM
#1
Thread Starter
Hyperactive Member
[2005] DatagridView and empty rows
When you click + on my bound DGV to add a row, my form does an .AddNew and passes the newly added DGV row to another "detail" form with unbound text controls. If the user cancels the detail form, however, the empty row is added to the DGV. So when you click the "save" button, there is an error because it's trying to update the database with an empty row.
I need to use this "detail" form method (given to me by someone on this forum). I read in help that you cannot programmatically remove rows from a DGV. Anyone see a way around this?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|