عزيزي
هذا الكود يقوم ب: قيمة العمود الثالث[2] = قيمة العمود الأول[0] + قيمة العمود الثاني[1]
كود :
private void dataGridView1_CellValueChanged(object sender, DataGridViewCellEventArgs e) {
try {
(sender as DataGridView).CurrentRow.Cells[2].Value =
Convert.ToSingle((sender as DataGridView).CurrentRow.Cells[0].Value) +
Convert.ToSingle((sender as DataGridView).CurrentRow.Cells[1].Value);
}catch(Exception ex) { }
}

