日期:2014-05-18  浏览次数:20365 次

GridView1_RowDataBound以后再点击按钮,GridView1自定义文字消失?
VB.NET code

 Protected Sub GridView1_RowDataBound
 e.Row.Cells(8).Text = "aabbcc"
end sub

Protected Sub Button1_Click
Button1.Enabled=false
end sub



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

咋办?

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