foreach (GridViewRow rows in dgServices.Rows) { CheckBox cb = (CheckBox)rows.FindControl"cbAddTo"); if (cb.Checked == true) { CalculatedItem += float.Parse(dgServices.Rows[0].Cells[8].Text); //here's the problem in the .Rows[0] } else { //do nothing } txtTB4V.Text = CalculatedItem.ToString(); }
CalculatedItem += float.Parse(rows.Cells[8].Text);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)