批量更新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("'""''"+ ";";
            }

posted on 2007-10-05 17:41  ★金★  阅读(490)  评论(0)    收藏  举报

导航