SqlConnection conn = new SqlConnection(ClassConnAll.conmmsy);
try
{
conn.Open();
for (int i = 0; i < this.dataGridViewItemCls.Rows.Count; i++)
{
SqlCommand comm = new SqlCommand();
string id= this.dataGridViewItemCls.Rows[i].Cells[0].Value.ToString().Trim();
//string SqlStr = "INSERT testbiao(sheet222,名称) VALUES ('" + gdh + "','" + pn + "')";
string SqlStr = "update t_bd_item_clsmmsy set return_rate=" + tbPlDS.Text
+ " where id="+id
+ " and branch_no like'%" + ClassConnAll.branchNo.Trim().ToString() + &
try
{
conn.Open();
for (int i = 0; i < this.dataGridViewItemCls.Rows.Count; i++)
{
SqlCommand comm = new SqlCommand();
string id= this.dataGridViewItemCls.Rows[i].Cells[0].Value.ToString().Trim();
//string SqlStr = "INSERT testbiao(sheet222,名称) VALUES ('" + gdh + "','" + pn + "')";
string SqlStr = "update t_bd_item_clsmmsy set return_rate=" + tbPlDS.Text
+ " where id="+id
+ " and branch_no like'%" + ClassConnAll.branchNo.Trim().ToString() + &