ChubbyArse
Member
- Joined
- Jun 10, 2003
- Messages
- 19
Hi All,
I have a dataset in a form with bound controls
I fill the dataset from an adapter and am implementing the commandbuilder
too.
I call
Me.BindingContext(dsCustomers, strTableName).EndCurrentEdit()
Me.BindingContext(dsCustomers, strTableName).AddNew()
to goto a new record (strTable is a variable containing the Table name)
and then I update some of the fields. Then I call from a button:
Me.BindingContext(dsCustomers, strTableName).EndCurrentEdit()
bolNewRecord = dsCustomers.HasChanges(DataRowState.Added)
bolNewRecord evaluates to true, but the lines evaluate as shown:
dsCustomers.HasChanges(DataRowState.Modified) = False
dsCustomers.HasChanges(DataRowState.Unchanged) = True
Why does it say that my new record is not modifed??
Thanks
Alex
I have a dataset in a form with bound controls
I fill the dataset from an adapter and am implementing the commandbuilder
too.
I call
Me.BindingContext(dsCustomers, strTableName).EndCurrentEdit()
Me.BindingContext(dsCustomers, strTableName).AddNew()
to goto a new record (strTable is a variable containing the Table name)
and then I update some of the fields. Then I call from a button:
Me.BindingContext(dsCustomers, strTableName).EndCurrentEdit()
bolNewRecord = dsCustomers.HasChanges(DataRowState.Added)
bolNewRecord evaluates to true, but the lines evaluate as shown:
dsCustomers.HasChanges(DataRowState.Modified) = False
dsCustomers.HasChanges(DataRowState.Unchanged) = True
Why does it say that my new record is not modifed??
Thanks
Alex