HOME

Friday, March 9, 2012

Grid Lines for Griedview in ASP.Net C#


protected void gv_RowDataBound(object sender, GridViewRowEventArgs e)
    {
        for (int i = 0; i < e.Row.Cells.Count; i++)
        {
            e.Row.Cells[i].BorderWidth = 1;
            e.Row.Cells[i].BorderColor = System.Drawing.Color.Black;
        }


    }

No comments:

Post a Comment