TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Shovan Saha
NA
321
91.9k
How can I sum for conditional column
Apr 24 2017 9:58 AM
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.
Reply
Answers (
1
)
Find datagridview for selected country and sum the following
See the screen shoot and help me to sum