DataGrid::GridLineStyle Property
.NET Framework (current version)
Gets or sets the line style of the grid.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
public: property DataGridLineStyle GridLineStyle { DataGridLineStyle get(); void set(DataGridLineStyle value); }
Property Value
Type: System.Windows.Forms::DataGridLineStyleOne of the DataGridLineStyle values. The default is Solid.
The following code example changes the GridLineStyle property to show no lines.
DataGrid1.GridLineStyle = DataGridLineStyle.None
.NET Framework
Available since 1.1
Available since 1.1
Show: