I have a datagridview on my form called "mainGrid" and im not very good with XML buti found a small example to load but not one to save
I wondered if there was a equally simple way to save! Heres the loading code:

Private Sub loadGrid()
        Dim ds As DataSet = New DataSet
        Dim dv As DataView = New DataView(ds.Tables(0))
        mainGrid.DataSource = dv
End Sub

as you can see it is very simple and i didnot have to manually do anything i was wondering if it was the same for saving or if not how i could do it thanks
any questions etc. just ask i will reply!

Recommended Answers

All 2 Replies

>I wondered if there was a equally simple way to save![/d]

// OR

I had tried this, but im pretty sure that it would just write the code from the original file since ds is not bound to the datagridview?
Im sorry, i dont know much about XML how would you bind the dataset to the gridview?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.