I was handed a new requirement and this one is new to me. After a day or two of research, I\'m still unable to figure this one out. The requirement is to find a way to send our
Please do like this
Msg.Body += GetGridviewData(gvUserInfo);
function to convert gridview data
// This Method is used to render gridview control
public string GetGridviewData(GridView gv)
{
StringBuilder strBuilder = new StringBuilder();
StringWriter strWriter = new StringWriter(strBuilder);
HtmlTextWriter htw = new HtmlTextWriter(strWriter);
gv.RenderControl(htw);
return strBuilder.ToString();
}