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 테이블에 표시 할 수 있습니까?
나는 단지 수직 및 수평 눈금 선을 사용해 보았습니다. 위 예에서 "both"를 사용합니다. – Feign
왜'GridView'를 사용하지 않습니까? –
저는 GridView를 사용한 적이 없습니다 ... 내가 원하는 것 같습니다. 고마워요 개리슨! – Feign