i would like to save the contents of a datagridview to an xml file
i will then want to open the xml file using excel
perhaps i should be exporting it to CSV file instead of XML?
i dont care what method to use, i just need the simplest and fastest
i guess the process should be
- copy the datagridview data into a datatable
- save the datatable to a csv/xml
how would i accomplish this?
please note that i do not want to save the datasource of the datagridview (because i make changes to datagridview in runtime), i want to make sure to iterate through the datagridview and save the data that way