Applying style to a grid view row
In the RowDataBound event of the grid view add this
e.Row.Style [ "border-top" ] = “3px solid Green”;
The code below applies the border style on all borders of the row.
e.Row.BorderStyle = BorderStyle.Solid;
e.Row.BorderWidth = new Unit(3);
e.Row.BorderColor = System.Drawing.Color.Green;
Advertisement