A
Andrew Oliner
Hi,
I have a SQL Server 2000 database with an Identity Column called IssueNum
which auto-increments each time a new record is created.
I'm using the ADO.net 2.0 tools, a BindingSource and a BindingNavigator.
When I click on the AddNew button on the Binding Navigator, it adds two
records to the datatable, not just one. The AddNew button doesn't do
anything other than call the AddNew function of the Binding Source.
The new records don't get written back to SQL Server, but it's very annoying
to have one record, click the AddNew button, and then have three records.
I've seen a previous Newsgroup post where someone said that this was a known
issue with adding new records to a table with an Autoincrement field, but
there was no workaround mentioned.
Please help,
Andy
I have a SQL Server 2000 database with an Identity Column called IssueNum
which auto-increments each time a new record is created.
I'm using the ADO.net 2.0 tools, a BindingSource and a BindingNavigator.
When I click on the AddNew button on the Binding Navigator, it adds two
records to the datatable, not just one. The AddNew button doesn't do
anything other than call the AddNew function of the Binding Source.
The new records don't get written back to SQL Server, but it's very annoying
to have one record, click the AddNew button, and then have three records.
I've seen a previous Newsgroup post where someone said that this was a known
issue with adding new records to a table with an Autoincrement field, but
there was no workaround mentioned.
Please help,
Andy