批量更新GridViewRow中的值
string strtolmoney = "";
string strid = "";
foreach (GridViewRow row in this.mygvsg1.Rows)
{
strid += this.mygvsg1.DataKeys[row.RowIndex].Value.ToString() + ";";
TextBox txtgoods_no = (TextBox)row.FindControl("txtgoods_no");
TextBox txttolmoney = (TextBox)row.FindControl("txttolmoney");
strtolmoney += txttolmoney.Text.ToString().Trim().Replace("'", "''") + ";";
}

浙公网安备 33010602011771号