J
jiatiejun
my program want to modify a table with DataGrid control,
the database is access2000 mdb format,
after remove a row from DataSet (ex:
myDataSet.myTable.Rows.RemoveAt(myIndex))
I add a new row to DataSet (ex: MyDataSet.myTable.Rows.Add(myDataRow))
when deleted row 's PK equ addnew row's PK
the DataSet can't to Update
why ?
I want allow user delete a row, and can add a new row with same PK column
value,
How do it ?
thanks
the database is access2000 mdb format,
after remove a row from DataSet (ex:
myDataSet.myTable.Rows.RemoveAt(myIndex))
I add a new row to DataSet (ex: MyDataSet.myTable.Rows.Add(myDataRow))
when deleted row 's PK equ addnew row's PK
the DataSet can't to Update
why ?
I want allow user delete a row, and can add a new row with same PK column
value,
How do it ?
thanks