B
Ben Unsworth
When I change any information in the fields of the first row of my dataset
the rowstate does not change! It works on all other rows just not the first
one!
For example:
MyDataSet.tablename.Rows(0).Item("city") = "Toronto"
MsgBox("Rowstate: " + MyDataSet.tablename.Rows(0).RowState.ToString)
After executing the code above the MsgBox would say "Rowstate: unchanged"
However, after executing the below code, the MsgBox would say "Rowsate:
modified"
MyDataSet.tablename.Rows(1).Item("city") = "Toronto"
MsgBox("Rowstate: " + MyDataSet.tablename.Rows(1).RowState.ToString)
I am not using acceptChanges() and I tried EndEdit() and I am baffled that
everything works fine for all of the rows of my dataset except the first
one!!!
The dataset schema was generated with SQLDataAdapter automatically in Visual
Studio 2003 from a MS SQL Server 2000 Database.
Any ideas??? TIA, Ben
the rowstate does not change! It works on all other rows just not the first
one!
For example:
MyDataSet.tablename.Rows(0).Item("city") = "Toronto"
MsgBox("Rowstate: " + MyDataSet.tablename.Rows(0).RowState.ToString)
After executing the code above the MsgBox would say "Rowstate: unchanged"
However, after executing the below code, the MsgBox would say "Rowsate:
modified"
MyDataSet.tablename.Rows(1).Item("city") = "Toronto"
MsgBox("Rowstate: " + MyDataSet.tablename.Rows(1).RowState.ToString)
I am not using acceptChanges() and I tried EndEdit() and I am baffled that
everything works fine for all of the rows of my dataset except the first
one!!!
The dataset schema was generated with SQLDataAdapter automatically in Visual
Studio 2003 from a MS SQL Server 2000 Database.
Any ideas??? TIA, Ben