试试用模版并在里面加个linkbutton,value=20,Postbackurl属性为www.csdn.com

解决方案 »

  1.   

    不行的,首先AutogenerateColumns=true,第二那个数据会有HTML标记我不知道的,即使有,也没有规律。
      

  2.   

    // 在 DataBound 事件中手动处理
    protected void GridView1_DataBound(object sender, EventArgs e)
        {
            foreach(GridViewRow row in (sender as GridView).Rows) {
                foreach(TableCell cell in row.Cells) {
                    if(cell.Controls.Count > 0) continue; // 跳过模版列
                    cell.Text = Server.HtmlDecode(cell.Text);
                }
            }       
        }