Hi!
Im running out of ideas here. Im trying to delete a row from my dataset which is retrived from an xml file. I can add rows fine, but when I try to delete a row I get a lot of "mumbojumbo". The xml file gets really messed up with elements in disorder and duplicate rows.
my current code looks like
the code is for compact.net which lacks support of typed datasets, but i dont know if my problems depends on that since I as I already said can add rows without problems.
- - - - - - - - - - - - - - - - - -
Im three apples high, Im blue, and i most certainly like that cold beer that should be every mans right after a hard days work!
Im running out of ideas here. Im trying to delete a row from my dataset which is retrived from an xml file. I can add rows fine, but when I try to delete a row I get a lot of "mumbojumbo". The xml file gets really messed up with elements in disorder and duplicate rows.
my current code looks like
Code:
Dim DS As DataSet
Dim DR As DataRow
DS = oXmlHandlerCF.getDataSet
For Each DR In DS.Tables("User").Rows
If DR.Item("UserId").ToString Like _ lvUsers.FocusedItem.Text Then
DS.Tables("User").Rows.Remove(DR)
DR.Delete()
DS.AcceptChanges()
Exit For
End If
Next
oXmlHandlerCF.saveDataSet(DS)
the code is for compact.net which lacks support of typed datasets, but i dont know if my problems depends on that since I as I already said can add rows without problems.
- - - - - - - - - - - - - - - - - -
Im three apples high, Im blue, and i most certainly like that cold beer that should be every mans right after a hard days work!