This documentation is archived and is not being maintained.
TableStyle.GridLines Property
.NET Framework 1.1
Gets or sets a value that specifies whether the border between the cells of the table control is displayed.
[Visual Basic] Public Overridable Property GridLines As GridLines [C#] public virtual GridLines GridLines {get; set;} [C++] public: __property virtual GridLines get_GridLines(); public: __property virtual void set_GridLines(GridLines); [JScript] public function get GridLines() : GridLines; public function set GridLines(GridLines);
Property Value
One of the GridLines enumeration values. The default is Both.
Exceptions
| Exception Type | Condition |
|---|---|
| ArgumentException | The specified value is not one of the GridLines enumeration values. |
Remarks
Use the GridLines property to specify whether the border between the cells of the data list control is displayed. This property is set with one of the GridLines enumeration values. The following table lists the possible values.
| Value | Description |
|---|---|
| None | No cell border is displayed. |
| Horizontal | Only the upper and lower borders of the cells in the data list control are displayed. |
| Vertical | Only the left and right borders of the cells in the data list control are displayed. |
| Both | All borders of the cells in the data list control are displayed. |
Requirements
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
See Also
TableStyle Class | TableStyle Members | System.Web.UI.WebControls Namespace | GridLines
Show: