title: How to display gridLines in GridView
body: <p>For some reason my grid lines are not showing when I open the gridview in IE or Chrome. I set the gridLines property to Both already.</p>
  
  <pre><code>&lt;asp:GridView ID="GridView1" runat="server"  OnSelectedIndexChanged="GridView1_SelectedIndexChanged" BorderColor="Black" AutoGenerateColumns="True" Height="350px" ShowFooter="True" AllowSorting="True" BackColor="Black" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" CellSpacing="3" GridLines ="Both"&gt;
  
  
          &lt;FooterStyle BackColor="#C6C3C6" ForeColor="Black" /&gt;
  
  
          &lt;HeaderStyle Font-Size="7pt" Width="400px" BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" &gt;
          &lt;/HeaderStyle&gt;
  
  
          &lt;PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" /&gt;
          &lt;RowStyle BackColor="#DEDFDE" ForeColor="Black" /&gt;
          &lt;SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" /&gt;
          &lt;SortedAscendingCellStyle BackColor="#F1F1F1" /&gt;
          &lt;SortedAscendingHeaderStyle BackColor="#594B9C" /&gt;
          &lt;SortedDescendingCellStyle BackColor="#CAC9C9" /&gt;
          &lt;SortedDescendingHeaderStyle BackColor="#33276A" /&gt;
  
  
      &lt;/asp:GridView&gt;
  </code></pre>