protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Attributes.Add("onMousedown", "javascript:onfocuscolor(this,'" + DataBinder.Eval(e.Row.DataItem, "ID").ToString() + "')");
}
}
这样才能在这个事件中取到这一行的值