TableStyle.GridLines Property

Definition

Gets or sets a value that specifies whether the border between the cells of the table control is displayed.

C#
[System.ComponentModel.Bindable(true)]
public virtual System.Web.UI.WebControls.GridLines GridLines { get; set; }
C#
public virtual System.Web.UI.WebControls.GridLines GridLines { get; set; }

Property Value

One of the GridLines enumeration values. The default is Both.

Attributes

Exceptions

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.

The value of this property is stored in view state.

Applies to

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also