Hi Guys
Suppose I am having two columns and I wanted to perform multiplication on that and want output on another column
so how Can I.....?
Column Name :- Amt Quantity Total
total = Amt * Quantity.
Please hepl me........
Multiplication operation of columns in datagrid ..?
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Jacob R36 reputationPosted Jan 31, 2010, 9:33 PM EST
dataGridView1(0,2).Value = myTotal.ToString();
dataGridView1.RefreshEdit();
my syntax might be off. I dont mess with dataGridView much. If the above doesn't work try dataGridView1.Rows[0].Cells[0].Value. Also, remember that the rows and columns start at 0 and not 1
Lalit MRank #1,186 · 1.5K reputationPosted Jan 31, 2010, 10:27 PM EST
DataTable dt = new DataTable();
DataColumn column4;
column4 = new DataColumn();
column4.ColumnName = "Column3";
column4.Caption = "Column3";
column4.Expression = "Column1*Column2";
dt.Columns.Add(column3);
Sreekanth199 reputationPosted Jan 31, 2010, 11:08 PM EST
Ankit Rathore64 reputationPosted Feb 1, 2010, 12:00 AM EST
Please solve my problem ,
these things are not working ..............