Well, there is way to do it:
System.Text.StringBuilder sb = new System.Text.StringBuilder();
StringWriter sw = new StringWriter(sb);
HtmlTextWriter htw = new HtmlTextWriter(sw);
DataGrid.RenderControl(htw);
// Now, sb.ToString() will get you the HTML for the DataGrid.
"tshad" <tf*@dslextreme.com> wrote in message
news:O2*************@TK2MSFTNGP12.phx.gbl...
So it has to be done by hand then.
I was hoping there was someway to use a Datagrid or datalist to create the
table and put the table into the body of the message.
Thanks,
Tom
"Siva M" <sh******@online.excite.com> wrote in message
news:eQ*************@TK2MSFTNGP12.phx.gbl...
Create the HTML markup for the table and use it as the body for the email.
The email should have the body content type as HTML
"tshad" <tf*@dslextreme.com> wrote in message
news:Ot**************@tk2msftngp13.phx.gbl...
Is there a way to easily put a Datagrid in an email?
I want to send a select result in the form of a Datagrid via an email to
some of our clients.
Thanks,
Tom