DataGrid.GridLineStyle DataGrid.GridLineStyle DataGrid.GridLineStyle DataGrid.GridLineStyle Property

定义

获取或设置网格的线型。Gets or sets the line style of the grid.

public:
 property System::Windows::Forms::DataGridLineStyle GridLineStyle { System::Windows::Forms::DataGridLineStyle get(); void set(System::Windows::Forms::DataGridLineStyle value); };
public System.Windows.Forms.DataGridLineStyle GridLineStyle { get; set; }
member this.GridLineStyle : System.Windows.Forms.DataGridLineStyle with get, set
Public Property GridLineStyle As DataGridLineStyle

属性值

DataGridLineStyle 值之一。One of the DataGridLineStyle values. 默认值为 SolidThe default is Solid.

示例

下面的代码示例将GridLineStyle属性更改为不显示任何行。The following code example changes the GridLineStyle property to show no lines.


DataGrid1.GridLineStyle = DataGridLineStyle.None
   

适用于

另请参阅