System.Web.UI.WebControls.DataList.GridLines Property

Gets or sets the grid line style for the System.Web.UI.WebControls.DataList control when the DataList.RepeatLayout property is set to RepeatLayout.Table.

Syntax

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

Value

a System.Web.UI.WebControls.GridLines

Remarks

Use the DataList.GridLines property to specify the grid line style for the System.Web.UI.WebControls.DataList control. The following table lists the possible styles.

GridLines.None

No grid lines.

GridLines.Horizontal

Displays the horizontal grid lines.

GridLines.Vertical

Displays the vertical grid line.

GridLines.Both

Displays both the horizontal and vertical grid lines.

Note:

This property only applies if the DataList.RepeatLayout property is set to RepeatLayout.Table.

Requirements

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