GridView鼠标悬浮
通过OnRowDataBound事件绑定
protected void 事件名(object sender, GridViewRowEventArgs e)
{
for (int i = 0; i < e.Row.Cells.Count; i++)//获取总列数
{
//如果是数据行则添加title
if (e.Row.RowType ==DataControlRowType.DataRow )
{//设置title为gridview的head的text
e.Row.Cells[i].Attributes.Add("title", e.Row.Cells[i].Text);
}
}
}