2013-07-09 3 views
0

SQL 쿼리를 실행하고 데이터를 테이블에 넣은 후 눈금 선을 표시하는 asp.net 테이블을 가져 오려고합니다. 나는 이제 눈금 선이 나타나고 보이지 않는지 확인하기 위해 기본 제목 행을 설정하려고 시도했습니다. 여기 ASP.NET 테이블 눈금 선 속성이 작동하지 않습니까?

내 테이블 마크 업입니다 :

그래서
<asp:Table ID="Table1" runat="server" ForeColor="Black" GridLines="Both" Height="330px" Width="950px"> 
    <asp:TableRow runat="server" BackColor="White" BorderColor="White" BorderStyle="Solid" BorderWidth="5px" Font-Bold="True" Font-Size="X-Small" ForeColor="#993399" HorizontalAlign="Center" VerticalAlign="Top"> 
     <asp:TableCell runat="server">Customer ID</asp:TableCell> 
     <asp:TableCell runat="server">Business Name</asp:TableCell> 
     <asp:TableCell runat="server">City</asp:TableCell> 
     <asp:TableCell runat="server">State</asp:TableCell> 
     <asp:TableCell runat="server">Phone</asp:TableCell> 
     <asp:TableCell runat="server">Email</asp:TableCell> 
     <asp:TableCell runat="server">Registered</asp:TableCell> 
     <asp:TableCell runat="server">Approved</asp:TableCell> 
     <asp:TableCell runat="server">Last Contacted</asp:TableCell> 
     <asp:TableCell runat="server">Logger</asp:TableCell> 
     <asp:TableCell runat="server">Responded</asp:TableCell> 
    </asp:TableRow> 

, 어떻게 격자 선 내 asp.net 테이블에 표시 할 수 있습니까?

+0

나는 단지 수직 및 수평 눈금 선을 사용해 보았습니다. 위 예에서 "both"를 사용합니다. – Feign

+1

왜'GridView'를 사용하지 않습니까? –

+0

저는 GridView를 사용한 적이 없습니다 ... 내가 원하는 것 같습니다. 고마워요 개리슨! – Feign

답변

2

BorderColor 속성은 속성을 표시해야합니다. 배경이 흰색이므로 BorderColor를 검정색으로 설정하십시오.

+0

내가 그걸 보자. – Feign

+0

borderColor를 검은 색으로 바꿨을 때 아무것도 바뀌지 않았다. 나는 또한 borderStyles와 다른 BackColors로 이것을 시도했다. – Feign

+0

흠, 게시하기 전에 VS 2010에서 나를 위해 일했습니다. 그래도 GridView를 찾은 것 같아! 행운을 빕니다! – Jmoreland91

관련 문제