decimal total = 0;
decimal price;
foreach (DataGridViewRow row in jobcardsDataGridView1.Rows)
{
if (row.IsNewRow) break;
Decimal.TryParse(row.Cells[6].Value.ToString(), out price);
total += price;
}
label1.Text = total.ToString("C");

VulpesRank #55 · 29.2K reputationPosted Dec 7, 2011, 7:41 AM EST
Try the following:
mike DelvottiRank #7,298 · 244 reputationPosted Dec 8, 2011, 3:52 AM EST