Gridview显示网格线

protected void GridView1_RowDataBound(object sender,GridViewRowEventArgs e)
{
    foreach(TableCell tc in e.Row.Cells)
    {
        tc.Attributes["style"]="border-color:red";
    }
}

  

posted @ 2012-12-25 23:18  ┦SUMMER  阅读(350)  评论(0编辑  收藏  举报