string id = GridView1.DataKeys[gvQuotedprice.SelectedRow.RowIndex].Values[0].ToString();取得GridView1设置的当前行的DataKeys值
e.Row.Attributes.Add("onmouseover", "c=this.style.backgroundColor;this.style.backgroundColor='#A9A9A9'"); //当鼠标停留时更改背景色
e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor=c");//当鼠标移开时还原背景色
e.Row.Attributes["style"] = "Cursor:hand";//设置悬浮鼠标指针形状为"小手"
LinkButton btn = (LinkButton)e.Row.FindControl("btnSelect");
e.Row.Attributes["OnDblClick"] = Page.GetPostBackClientHyperlink(btn, "");//OnDblClick双击,OnClick单击


相关文章:

  • 2021-11-11
  • 2021-12-07
  • 2021-11-25
  • 2021-11-14
  • 2021-11-04
  • 2022-12-23
  • 2022-12-23
  • 2021-05-16
猜你喜欢
  • 2021-05-20
  • 2021-12-05
  • 2021-12-27
  • 2021-09-24
  • 2021-05-20
  • 2022-12-23
  • 2021-04-30
相关资源
相似解决方案