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
Goran Bibic
458
2.9k
201.3k
Sum column to textbox where condition is word
Apr 26 2018 3:31 PM
Try this...result is 0
What I miss?
////gotovina
double
[] columnData2 =
new
double
[mp_kasa_listaDataGridView.Rows.Count];
columnData2 = (from DataGridViewRow row in mp_kasa_listaDataGridView.Rows
where row.Cells[
"dataGridViewTextBoxColumn16"
].FormattedValue.ToString() != string.Empty && (row.Cells[
"dataGridViewTextBoxColumn14"
].ToString()) == (
"Gotovina"
).ToString()
// && System.DateTime.ParseExact("d.M.yyyy", row.Cells["dataGridViewTextBoxColumn4"].ToString(), System.Globalization.CultureInfo.InvariantCulture) == System.DateTime.Now.Date
select Convert.ToDouble(row.Cells[
"dataGridViewTextBoxColumn16"
].FormattedValue)).ToArray();
textBox3.Text = columnData2.Sum().ToString(
"#,0.00"
);
Reply
Answers (
0
)
Label valute sum?
which number required to make a barcode for local product?