string sDispStr = "";
foreach (DataRow TRow in DTable.Rows)
{
sDispStr += TRow[0] + ", " + TRow[1] + " – " + TRow[2] + TRow[11].ToString() + "\n";
Console.WriteLine(sDispStr);
Console.ReadLine();
}
Sam,
Can you use a StringBuilder here instead? Concatonating to a string in this method causes the runtime to create a new string and abandon the old one.
Not trying to be picky... but I learned this later than I would have preferred.