The code below renders a datagrid and send its contents by email.
Dim SB as New StringBuilder()
Dim SW as New StringWriter(SB )
Dim htmlTW as New HtmlTextWriter( SW)
YOUR_DATAGRID.R enderControl(ht mlTW)
Dim dataGridHTML as String = SB.ToString()
Dim MyMail As MailMessage = New MailMessage()
MyMail.From = From
MyMail.To = To
MyMail.Subject = Subject
MyMail.Body = dataGridHTML
MyMail.BodyForm at = MailFormat.Html
SmtpMail.SmtpSe rver = MailServer
SmtpMail.Send(M yMail)
Source : http://www.mycodebank.com/Snippet,78.aspx