DataGridLineStyle Enumeration
Collapse the table of content
Expand the table of content

DataGridLineStyle Enumeration


Specifies the style of gridlines in a System.Windows.Forms.DataGrid.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public enum DataGridLineStyle

Member nameDescription

No gridlines between cells.


Solid gridlines between cells.

Use the members of this enumeration to set the value of the GridLineStyle property of the System.Windows.Forms.DataGrid class. The default is Solid.

The following example sets the GridLineStyle property to DataGridLineStyle.None.

private void SetGridLineAttributes()
   dataGrid1.GridLineStyle = DataGridLineStyle.None;

.NET Framework
Available since 1.1
Return to top
© 2015 Microsoft