Formatting email body in one line without using table

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

SA260884

Guest
Hi Folks !

I am creating an email in my C# code and would like the formatting of the items one below other without using html(table), can someone please advice. I would appreciate any help.

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


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

body += detailRow[ColumnValue1].ToString();
body += " ";
body += detailRow[ColumnValue2].ToString();
body += " ";
body += detailRow[ColumnValue3].ToString();


}


I want all the items to come in line below each other like a table.

Thanks

Continue reading...
 
Back
Top