[c# .net 2] Exporting data from dataGridView

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • michaeleaton
    New Member
    • Feb 2007
    • 3

    #1

    [c# .net 2] Exporting data from dataGridView

    Evening.

    I have an unbound dataGridView which i'm populating programatically (not using a dataset) from xml/user entered data. What i now need to do is when the user clicks save i want it to write all data from the dataGridView to an xml file.

    I think the only/best (?) way to do this is to iterate through each row/cell and write the xml file manually.

    Problem is, I just cant seem to do the forloop right. Can someone help me out?


    Thanks.

    Michael
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    Please post your code. Here is an article that may help:
    An editable GridView Control in VB.NET

    Comment

    Working...