Gets or sets the line style of the grid.
[Visual Basic] Public Property GridLineStyle As DataGridLineStyle [C#] public DataGridLineStyle GridLineStyle {get; set;} [C++] public: __property DataGridLineStyle get_GridLineStyle(); public: __property void set_GridLineStyle(DataGridLineStyle); [JScript] public function get GridLineStyle() : DataGridLineStyle; public function set GridLineStyle(DataGridLineStyle);
One of the DataGridLineStyle values. The default is Solid.
The following example changes the GridLineStyle property to show no lines.
[Visual Basic]
DataGrid1.GridLineStyle = DataGridLineStyle.None
DataGrid Class | DataGrid Members | System.WinForms Namespace | GridLineColor