DataGridLineStyle Enumeration

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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
None

No gridlines between cells.

Solid

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
Show: