当前位置: 代码迷 >> ASP.NET >> GridView1_RowDataBound以后再点击按钮,GridView1自定义文字消失?解决方案
  详细解决方案

GridView1_RowDataBound以后再点击按钮,GridView1自定义文字消失?解决方案

热度:9579   发布时间:2013-02-25 00:00:00.0
GridView1_RowDataBound以后再点击按钮,GridView1自定义文字消失?
VB.NET code
 Protected Sub GridView1_RowDataBound e.Row.Cells(8).Text = "aabbcc"end subProtected Sub Button1_ClickButton1.Enabled=falseend sub


按下Button1以后
e.Row.Cells(8).Text就没了!

咋办?

------解决方案--------------------------------------------------------
没有禁用viewstate?页面回发需要重新绑定哦。
  相关解决方案