This documentation is archived and is not being maintained.

DataGrid.GridLineStyle Property

Gets or sets the line style of the grid.

[Visual Basic]
Public Property GridLineStyle As DataGridLineStyle
public DataGridLineStyle GridLineStyle {get; set;}
public: __property DataGridLineStyle get_GridLineStyle();
public: __property void set_GridLineStyle(DataGridLineStyle);
public function get GridLineStyle() : DataGridLineStyle;
public function set GridLineStyle(DataGridLineStyle);

Property Value

One of the DataGridLineStyle values. The default is Solid.


[Visual Basic] The following example changes the GridLineStyle property to show no lines.

[Visual Basic] 

 DataGrid1.GridLineStyle = DataGridLineStyle.None

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


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

See Also

DataGrid Class | DataGrid Members | System.Windows.Forms Namespace | GridLineColor