您的位置首页百科知识

GridView控件

GridView控件

的有关信息介绍如下:

问题补充说明: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事件中:protectedv卫优斗攻缩数文翻际怎娘oidGridView1_RowDataBound(……){if(e.Row.RowType==DataCon选例同件信请身晶创trolRowType.Dat第来神市事派怀出损攻手aRow){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+"')");

}}