Formatting email body in one one vertical line without using table

  • Thread starter Thread starter SA260884
  • Start date Start date
S

SA260884

Guest
Hi,

I am creating an email body and want the data to display in tabular form without using HTML, Can someone please suggest ideas.

I would appreciate any help.

foreach (ListViewItem lvi in lines)
{
DataRow detailRow = (DataRow)lvi.Tag;

if (lvi == lines[0])
{
body += string.Format("ColumnHeader1: ColumnHeader2: ColumnHeader3:");
body += "\r";
}

body += string.Format("{0} {1} {2}\r", detailRow[ColumnValue1].ToString(), detailRow[ColumnValue2].ToString(), detailRow[ColumnValue3].ToString());

if (lvi != lines[lines.Count - 1])
{
body += "\r";
}
}


Thanks in advance.

Continue reading...
 
Back
Top