Results 1 to 2 of 2

Thread: Deleting in XML

  1. #1

    Thread Starter
    Banned
    Join Date
    May 2009
    Posts
    144

    Deleting in XML

    Hi again... i am having problems getting my code to delete certain parts on an XML.

    I've tried..
    Code:
     DirectCast(ListBox2.SelectedItem, Data.DataRowView).Item("name").Delete()
                DirectCast(ListBox2.SelectedItem, Data.DataRowView).Item("description").Delete()
                DirectCast(ListBox2.SelectedItem, Data.DataRowView).Item("manufacturer").Delete()
                DirectCast(ListBox2.SelectedItem, Data.DataRowView).Item("year").Delete()
                DirectCast(ListBox2.SelectedItem, Data.DataRowView).Item("type").Delete()
    But get
    Public member 'Delete' on type 'String' not found

  2. #2

    Thread Starter
    Banned
    Join Date
    May 2009
    Posts
    144

    Re: Deleting in XML

    I have also tried

    Code:
    ds1.Tables.Remove(ListBox2.SelectedItem)
    and
    Code:
    ds1.Tables.Remove(ListBox2.SelectedItem.ToString)
    but they don't work either..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width