System.Web.UI.WebControls.TableStyle.GridLines Property

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

Syntax

[System.ComponentModel.DefaultValue(System.Web.UI.WebControls.GridLines.None)]
[System.ComponentModel.NotifyParentProperty(true)]
public virtual GridLines GridLines { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the TableStyle.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 System.Web.UI.WebControls.GridLines enumeration values. The following table lists the possible values.

GridLines.None

No cell border is displayed.

GridLines.Horizontal

Only the upper and lower borders of the cells in the data list control are displayed.

GridLines.Vertical

Only the left and right borders of the cells in the data list control are displayed.

GridLines.Both

All borders of the cells in the data list control are displayed.

The value of this property is stored in view state.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0