This documentation is archived and is not being maintained.
DataGridLineStyle Enumeration
.NET Framework 1.1
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
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
Show: