TableStyle.GridLines 屬性

定義

取得或設定值,指定表格控制項儲存格之間的框線是否顯示。Gets or sets a value that specifies whether the border between the cells of the table control is displayed.

public:
 virtual property System::Web::UI::WebControls::GridLines GridLines { System::Web::UI::WebControls::GridLines get(); void set(System::Web::UI::WebControls::GridLines value); };
[System.ComponentModel.Bindable(true)]
public virtual System.Web.UI.WebControls.GridLines GridLines { get; set; }
public virtual System.Web.UI.WebControls.GridLines GridLines { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.GridLines : System.Web.UI.WebControls.GridLines with get, set
member this.GridLines : System.Web.UI.WebControls.GridLines with get, set
Public Overridable Property GridLines As GridLines

屬性值

GridLines

其中一個 GridLines 列舉值。One of the GridLines enumeration values. 預設為 BothThe default is Both.

屬性

例外狀況

指定的值不是其中一個 GridLines 列舉值。The specified value is not one of the GridLines enumeration values.

備註

GridLines 可以使用屬性來指定是否顯示資料清單控制項之資料格之間的框線。Use the GridLines property to specify whether the border between the cells of the data list control is displayed. 這個屬性會使用其中一個 GridLines 列舉值來設定。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.

這個屬性的值會儲存在 view 狀態中。The value of this property is stored in view state.

適用於

另請參閱