DataGrid.GridLineStyle 属性

定义

获取或设置网格的线型。

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 值之一。 默认值为 Solid

示例

下面的代码示例将 GridLineStyle 属性更改为不显示任何行。


DataGrid1.GridLineStyle = DataGridLineStyle.None

适用于

另请参阅