var sumObject = dataGridView1.Rows.Cast()
.Sum(row => row.Cells["AmountBDT"].Value.ToString(), "SuspenceAccount = Placid Express");
Here two column : AmountBDT & SuspenceAccount. Placid Express is one of the item of SuspenceAccount.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Ashish VishwakarmaRank #575 · 4.2K reputationPosted Apr 25, 2017, 7:30 PM EDT