A
Agnes
My code is so simple that I want to remove the row. However, After process
the below code, I browse the table, nothing is deleted.
dtRemark.DefaultView.RowFilter = "cocode ='ABC'"
Dim myDataRow As DataRow
myDataRow = dtRemark.DefaultView.Item(0).Row
dtRemark.Rows.Remove(myDataRow)
dtRemark.acceptchanges()
dsRemark.update()
daRemark.Update(dsRemark, "CompanyRemark")
dsRemark.AcceptChanges()
the below code, I browse the table, nothing is deleted.
dtRemark.DefaultView.RowFilter = "cocode ='ABC'"
Dim myDataRow As DataRow
myDataRow = dtRemark.DefaultView.Item(0).Row
dtRemark.Rows.Remove(myDataRow)
dtRemark.acceptchanges()
dsRemark.update()
daRemark.Update(dsRemark, "CompanyRemark")
dsRemark.AcceptChanges()