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
482
2.9k
197.1k
Auto refresh datagrid after insert value?
Apr 7 2018 10:09 AM
Auto refresh datagrid after insert value?
private
void
dataGridView1_SelectionChanged(object sender, EventArgs e)
{
double
[] columnData =
new
double
[dataGridView1.Rows.Count];
columnData = (from DataGridViewRow row in dataGridView1.Rows
where row.Cells[
"kolicina"
].FormattedValue.ToString() != string.Empty
select Convert.ToDouble(row.Cells[
"kolicina"
].FormattedValue)).ToArray();
kolicinalabel.Text = columnData.Sum().ToString(
"#,0.00"
);
button3_Click(null, null);
double
[] columnData2 =
new
double
[dataGridView1.Rows.Count];
columnData = (from DataGridViewRow row in dataGridView1.Rows
where row.Cells[
"ukupno"
].FormattedValue.ToString() != string.Empty
select Convert.ToDouble(row.Cells[
"ukupno"
].FormattedValue)).ToArray();
ukupnolabel.Text = columnData.Sum().ToString(
"#,0.00"
);
dataGridView1.Refresh();
}
Reply
Answers (
3
)
Regarding Menuscript
is there any javascript to c# converter ? (not for unity)