Latest web development tutorials

ASP.NET Table GridLines property

Table Controls Table Controls

Definition and Usage

GridLines property to get or set the grid line style Table control.

grammar

<asp:Table GridLines="mode" runat="server">
Some Content
</asp:Table>
属性 描述
mode 为表格规定网格线样式。

可能的值:

  • None
  • Horizontal
  • Vertical
  • Both


Examples

The following examples of the GridLines property to "Both":

<form runat="server">
<asp:Table id="tab1" runat="server" GridLines="Both">
<asp:TableRow>
<asp:TableCell>
Hello!
</asp:TableCell>
<asp:TableCell>
Hello!
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</form>

The demonstration >>

Table Controls Table Controls