if (learnerDataGridView.Rows.Count > 0) txtNumberOfLearners.Text = Total().ToString("c"); } private double Total() { double tot = 0; int i = 0; for (i = 0; i < learnerDataGridView.Rows.Count; i++) { tot = tot + Convert.ToDouble(learnerDataGridView.Rows[i].Cells["Gender"].Value); } return tot;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)