Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
4
Reply
how to multiply two columns and get result in next culomn?
romasha ali
Apr 1 2016 6:42 PM
453
Reply
hi,
i m trying this code but it show anything in result column kindly guide..
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
for (int n = 0; n < (dataGridView1.Rows.Count - 1); n++)
{
int s = Convert.ToInt32(dataGridView1.Rows[n].Cells[3].Value);
int s1 = Convert.ToInt32(dataGridView1.Rows[n].Cells[4].Value);
int s13 = s1 + s;
dataGridView1.Rows[n].Cells[5].Value = s13;
}
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
4
)
Next Recommended Forum
Dynamic textboxes
Ask about resizing between 2 pannel ?