当前位置:神舟问>百科问答>GridView控件

GridView控件

2024-03-31 07:38:07 编辑:join 浏览量:589

问题补充说明:e.Row.Attributes.Add("onmouseover","c=this.style.backgroundColor;this.style.backgroundColor='#999999'");e.Row.Attributes.Add("onmouseout","this.style.backgroundColor=c");... e.Row.Attributes.Add("onmouseover", "c=this.style.backgroundColor;this.style.backgroundColor='#999999'"); e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor=c"); e.Row.Attributes.Add("onclick", "__doPostBack('GridView1','Select$" + e.Row.RowIndex + "')");//括号里写的是什么呀,是那块的知识,怎么看不懂 展开

GridView控件

当然可以,直接在GridView_RowDataBound事件中:protectedvoidGridView1_RowDataBound(……){if(e.Row.RowType==DataControlRowType.DataRow){e.Row.Attr仅续美ibutes.Add("onm世界冲周毫ouseover","c=this.style.backgroundColor;this.style.backgroundColor='#999999'");e.Ro少w.Attribute上九规段皇穿今织医六两s.Add("onmouseout","this.style.backgroundColor=c");e.Row.Attributes.Add("onclick","__doPostBack('GridView1','Select$"+e.Row.RowIndex+"')");

}}

标签:控件,GridView

版权声明:文章由 神舟问 整理收集,来源于互联网或者用户投稿,如有侵权,请联系我们,我们会立即处理。如转载请保留本文链接:https://www.shenzhouwen.com/answer/312451.html
热门文章