I have a datatable (dt) which, when I put into a DataGridView, is automatically and nicely formatted.
How can I "write" this table/view to a txt file? Without looping through and doing all the formatting myself.
Is there any built-in functionality?
dt.WriteXml(report,XmlWriteMode.IgnoreSchema);
The above unfortunately gives all the XML structure and tags.
I would like some similar to the "GridView".