Export (0) Print
Expand All
Expand Minimize

DataGridLineStyle Enumeration

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

[Visual Basic]
<Serializable>
Public Enum DataGridLineStyle
[C#]
[Serializable]
public enum DataGridLineStyle
[C++]
[Serializable]
__value public enum DataGridLineStyle
[JScript]
public
   Serializable
enum DataGridLineStyle

Remarks

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.

Members

Member name Description
None No gridlines between cells.
Solid Solid gridlines between cells.

Example

[Visual Basic, C#, C++] The following example sets the GridLineStyle property to DataGridLineStyle.None.

[Visual Basic] 
Private Sub SetGridLineAttributes()
    dataGrid1.GridLineStyle = DataGridLineStyle.None
End Sub 'SetGridLineAttributes

[C#] 
private void SetGridLineAttributes()
{
   dataGrid1.GridLineStyle = DataGridLineStyle.None;
}

[C++] 
private:
    void SetGridLineAttributes()
    {
       dataGrid1->GridLineStyle = DataGridLineStyle::None;
    }

[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button Language Filter in the upper-left corner of the page.

Requirements

Namespace: System.Windows.Forms

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

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

See Also

System.Windows.Forms Namespace | DataGrid | GridLineStyle

Show:
© 2014 Microsoft