C
Chuck P
I have a typical windows forms application that uses a DataGridView, a
dataset, a bindingsource, and a TableAdapter.
If I modify one row in the datagridview everything works fine.
If I modify more than one row only the first modified row gets
updated.
My Code to write to the db is
{
if (this.Validate())
{
this.lutCategoriesBindingSource.EndEdit();
if (this.dsLookUp.HasChanges())
this.lutCategoriesTableAdapter.Update(this.dsLookUp.lutCategories);
}
}
The tableAdapter uses Stored Procedures for the commands.
I have the same code going against an Access database without the
stored procedures and it works fine. When I switched to SQL05 and
stored procedures I got this behavior.
dataset, a bindingsource, and a TableAdapter.
If I modify one row in the datagridview everything works fine.
If I modify more than one row only the first modified row gets
updated.
My Code to write to the db is
{
if (this.Validate())
{
this.lutCategoriesBindingSource.EndEdit();
if (this.dsLookUp.HasChanges())
this.lutCategoriesTableAdapter.Update(this.dsLookUp.lutCategories);
}
}
The tableAdapter uses Stored Procedures for the commands.
I have the same code going against an Access database without the
stored procedures and it works fine. When I switched to SQL05 and
stored procedures I got this behavior.