Link to home
Start Free TrialLog in
Avatar of Tom Sage
Tom SageFlag for United States of America

asked on

DataGridView - How to know number of Inserts when saving using TableAdapter?

I have a DataGridView control that I am using to input data for a Table.  I am using the following code to update the table:

Me.CustomerTableAdapter.Update(Me.DealerDataSet.Customer)

I would like to know which of the changes were Inserts.  Is there a way I can tell?

Thank you.

ASKER CERTIFIED SOLUTION
Avatar of rajeeshmca
rajeeshmca
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Tom Sage

ASKER

This looks like what I want.  I will try a few tests and let you know.

Thank you
I have not been able to totally change my program, I can see that this gives me the information I need to identify which rows were changed.

Thank you for your quick response.