Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Answer
How can I sum for conditional column
Shovan Saha
7y
278
1
Reply
var sumObject = dataGridView1.Rows.Cast<DataGridViewRow>()
.Sum(row => row.Cells["AmountBDT"].Value.ToString(), "SuspenceAccount = Placid Express");
Here two column : AmountBDT & SuspenceAccount. Placid Express is one of the item of SuspenceAccount.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
Find datagridview for selected country and sum the following
See the screen shoot and help me to sum