M
Martin
Hello,
how can I export the contents of my datagrid to a text
format. I am using the following code
sw = new StringWriter();
tw = new HtmlTextWriter(sw);
dGrid.RenderControl(tw);
string data = sw.ToString(); //needs to be plain text
/* expected format
empno empname email
------------------------
1 Jerry (e-mail address removed)
2 mark (e-mail address removed)
*/
I would appreciate any help
Thanks
how can I export the contents of my datagrid to a text
format. I am using the following code
sw = new StringWriter();
tw = new HtmlTextWriter(sw);
dGrid.RenderControl(tw);
string data = sw.ToString(); //needs to be plain text
/* expected format
empno empname email
------------------------
1 Jerry (e-mail address removed)
2 mark (e-mail address removed)
*/
I would appreciate any help
Thanks