这里不会上传图片,问题我就直接发在腾讯问问里了:http://wenwen.soso.com/z/q299464893.htm请大家帮我解决,谢谢

解决方案 »

  1.   

    gv.Rows[i].Cells[j].Attributes.Add("style", "border-bottom:solid 1px black;");
      

  2.   

    给i行j列添加stylei j是索引
      

  3.   

    测试成功!
    protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
    {
    if (e.Row.RowIndex >= 0)
    {
    string firstWord = e.Row.Cells[1].Text.Split(' ')[0];
    string result = "<font style='text-decoration:underline'>" + firstWord + "</font>";
    e.Row.Cells[1].Text = e.Row.Cells[1].Text.Replace(firstWord, result);
    }
    }
      

  4.   

    GridView例子http://d.download.csdn.net/down/3088050/qingYun1029