为GridView表格添加光标提示

 protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
    {
        if (e.Row.RowType == DataControlRowType.DataRow)
        {
            string str = e.Row.Cells[1].Text;
           
            e.Row.Cells[1].Attributes.Add("Title", str);                    
           
        }
    }

你可能感兴趣的:(GridView)