Gridview显示网格线

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

  

原文地址:https://www.cnblogs.com/hhwan/p/2833215.html