protected void GVMtrPoint_RowDataBound(object sender, GridViewRowEventArgs e)
    {
        if (e.Row.RowIndex >= 0)
        {
            e.Row.Attributes.Add("onmouseover", "this.name=this.style.backgroundColor;this.style.backgroundColor='Honeydew';this.style.color='blue'");
            e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor=this.name;this.style.color='black'");
            e.Row.Attributes.Add("onclick", "this.style.backgroundColor='#6699ff';");
            //((Label)e.Row.Cells[1].FindControl("lbl_order")).Text = (e.Row.RowIndex + 1).ToString();
        }
    }

相关文章:

  • 2022-12-23
  • 2021-12-31
  • 2021-09-12
  • 2022-01-13
  • 2022-12-23
  • 2021-12-28
  • 2021-12-19
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-03-08
  • 2022-12-23
  • 2021-11-20
  • 2021-08-04
相关资源
相似解决方案