I don't understand. You're trying to assign table.Rows[i]["Value"] the value of temp inside CheckCellIntegrity() ?